Hello Everyone,
We are using zimbra 6.0.5.
I have a project to gather ldap information from Zimbra. Specifically to find the members of a given distribution list and avail it via a webpage. Here's what I was going to do.
At first, I was using the
ldapsearch -x -v -H 'ldap://hostname' -D 'uid=peter,ou=people,dc=mydomain,dc=com' -b 'ou=people,dc=somedomain,dc=com' "objectClass=zimbraDistributionList" zimbraMailForwardingAddress -W | less
Just to get the query to work right. But I'm finding that "zimbraMailForwardingAddress" is not a valid attribute or there's something wrong with with my query that the objects I'm getting do not have this attribute.
In any case, this attribute shows when I do zmprov gdl
dist-list@somedomain.com, but when I use ldapsearch it doesn't show.
I was just trying to get this core function working before beginning developing the PHP portion using PHP LDAP libs. But because I can't get this to work, I'm considering whether there is a way for PHP to get console output so that I can render it on a web-page instead of using LDAP.
I would prefer to use the LDAP solution as I think it's a more elegant solution, but if not I'll just scrape off data from the console if possible. Would anyone know whether my LDAP query is wrong, or if it's not would there be a way for PHP to grab the output of cli commands so I can put them on a website? Thanks.
p