[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
debugging memberOf overlay
- To: openldap-technical@openldap.org
- Subject: debugging memberOf overlay
- From: c0re <nr1c0re@gmail.com>
- Date: Thu, 9 Dec 2010 14:54:45 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=ZjLpQVwG2InZ7KV4590uJhcQ+RWAV3j5g8aaGxOa7zE=; b=sjiac9+tj1k3an/He9bVUx0bTbPRcGJl5vwQZ2sVCgo9vuMV8zodEshp1iPV6l665q j/E5mLWbZFo4gOiZbmYC5KfATBsN9dUuJvbj9gvucoOt4fZqHk1oE0z/UcxrwT7WDH5c wpferUhvQnkpru03RNvGibig2zXZDFpgp7IrE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WwgseMvtDF6tGf19/c8H/egenOJ1OW2bflrdlW/foztBhVuRMr8Uu0estbWgJhSNsH IDPfdteU2jhaE5/A0L/DpV2aPgDUiFAD8jd7wQqV/T5mZmm0eoP+Auzs/UjtF2f+qMRc U9UFfxnbHTpcomq1zewmp07ZJ4lj2vKi7d1/w=
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!