[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Debugging a module



On Wed, Sep 16, 2009 at 17:42, Ryan Steele <ryans@aweber.com> wrote:
> query returns nothing:
>
> ldapsearch -x -w SECRET -D "cn=admin,dc=example,dc=com" -b "cn=testgroup,ou=Groups,dc=example,dc=com" -LLL '(uid=user1)'


This filter doesn't look right. Try
"(member=uid=user1,ou=Users,dc=example,dc=com)"

> ldapsearch -x -w SECRET -D "cn=admin,dc=example,dc=com" -b "cn=testgroup ou=Groups,dc=example,dc=com" -LLL
> dn: cn=testgroup,ou=Groups,dc=example,dc=com
> ou: Groups
> cn: testgroup
> objectClass: groupOfURLs
> memberURL: ldap:///ou=Users,dc=example,dc=com?uid?sub?(&(employeeType=Developer
>  )(objectClass=exampleEmployee))
> member: uid=user1,ou=Users,dc=example,dc=com
> member: uid=user2,ou=Users,dc=example,dc=com
> member: uid=user3,ou=Users,dc=example,dc=com