[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: debugging memberOf overlay
- To: openldap-technical@openldap.org
- Subject: Re: debugging memberOf overlay
- From: c0re <nr1c0re@gmail.com>
- Date: Thu, 9 Dec 2010 15:13:26 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=tSyi9rO9y9fFuBKrihkaxkdZon3ci2b0RPe1WG3Lcdo=; b=LWSHJdZTLmucRZUBLCgXsOZnqM9mU2y9Grw9jkD9aAEI/OftB3x5XrT/mImBSjSdRR X2tZ9Ia56J6feUAWlNE1UaJq2GcjIgqDKlgBWt/STnm6FL/IzSDWv1C7XdUm/z9KaQFP SnS2nJ/5Akv2eKYr9jkMfD+mtR0keu+w5KSkk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ShdAP9sh1WuEg36lVbA4+jpeFJAV9nDnH2zu9wSD1ILm/fvRicH7M3ZtydAuHllVf5 vdXeGdv10UIMW8Lb1nYqwIKvKVW+Ja2ZSHu16sQbKb3ACovZqFR5Mv33+MEqlMSnqrz1 bdW1UDRVi9bBKBf43YjEwx1IjILhI2u5dwZXc=
- In-reply-to: <AANLkTinru7esi0-px_HbOpp_2BUrjO2NHz+Ow=7v1RSW@mail.gmail.com>
- References: <AANLkTinru7esi0-px_HbOpp_2BUrjO2NHz+Ow=7v1RSW@mail.gmail.com>
2010/12/9 c0re <nr1c0re@gmail.com>:
> Hello all!
>
> Trying to get memberOf overlay working.
>
> Added to slapd.conf "overlay memberof"
>
> Restarted slapd.
>
> Checked that overlay loaded
>
>
> # slaptest -d 1
> .............
> config_build_entry: "olcOverlay={1}memberof"
> .............
>
>
> Then added 1 user and 2 groups via ldif:
>
>
> dn: cn=test,ou=users,dc=domain,dc=local
> sn: test
> cn: test
> uid: test
> objectClass: inetOrgPerson
> objectClass: top
> objectClass: person
> objectClass: posixAccount
> objectClass: shadowAccount
> objectClass: radiusprofile
> uidNumber: 5555
> gidNumber: 5555
> homeDirectory: /home/test
> givenName: test
> loginShell: /bin/sh
> shadowMin: 0
> shadowMax: 999
> shadowWarning: 7
> shadowInactive: -1
> shadowExpire: 0
> shadowFlag: 0
> dialupAccess: yes
>
>
> dn: cn=testgroup,ou=servers,dc=domain,dc=local
> objectclass: groupOfNames
> cn: testgroup
> member: cn=test,ou=users,dc=domain,dc=local
>
> dn: cn=maingroup,ou=servers,dc=domain,dc=local
> objectclass: groupOfNames
> cn: maingroup
> member: cn=testgroup,ou=servers,dc=domain,dc=local
>
> And made
>
> # ldapsearch -x -D "cn=admin,dc=domain,dc=local" -b
> "dc=domain,dc=local" -W "(cn=test)" memberOf
>
> # extended LDIF
> #
> # LDAPv3
> # base <dc=domain,dc=local> with scope subtree
> # filter: (cn=test)
> # requesting: memberOf
> #
>
> # test, users, domain.local
> dn: cn=test,ou=users,dc=domain,dc=local
>
> # search result
> search: 2
> result: 0 Success
>
> # numResponses: 2
> # numEntries: 1
>
>
> As you see - no memberOf in users attrs.
>
> I got no ideas why...
>
> By that I wanted to test output of ldapsearch to check will there be
> two or one memberOf attrs.
>
> Thanks!
>
openldap 2.4.23