[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap question
Hi all,
These are my first steps in the world of ldap.
So forgive me my ignorance on this...
I am creating an ldap setup for our studentgroup/college
And i've created an own objectClass wich contains all the possible
values that we want to keep for every of our members
objectClass ( 1.3.6.1.4.1.17806.2.2.2
NAME 'iswAccount'
DESC 'Isw account info'
SUP 'top' STRUCTURAL
MUST ( userPassword $ loginShell $ uidNumber $ gidNumber $
homeDirectory $givenName $creatorsName $createTimestamp $
host $ postalAddress $ mail )
MAY ( gecos $ jpegPhoto $ telephoneNumber $
labeledURI $ orgIswHardQuota $ orgIswSoftQuota $ shadowMin $ shadowMax $ shadowLastChange $
shadowWarning $ shadowInactive $ shadowExpire $ shadowFlag $ hostAccess ))
And i can add a user without any problem
dn: uid=tester,ou=People,dc=isw,dc=be
uid: tester
cn: tester
objectClass: top
objectClass: uidOrganizationalPersonNameForm
objectClass: iswAccount
sn: tester
givenName: iemand
userPassword: {crypt}$1$pylxkyq0$5LjFk6cgPoJHiPMKyOEs20
shadowLastChange: 12066
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 1040
gidNumber: 1040
homeDirectory: /home/tester
gecos: Tester Ldap,,,
host: nikita
host: madoka
mail: tester@foo.be
And i can search for it
ldapsearch -x -b "ou=People,dc=isw,dc=be" "(objectClass=*)"
# tester, People, isw, be
dn: uid=tester,ou=People,dc=isw,dc=be
uid: tester
cn: tester
objectClass: top
objectClass: uidOrganizationalPersonNameForm
objectClass: iswAccount
sn: tester
givenName: iemand
shadowLastChange: 12066
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 1040
gidNumber: 1040
homeDirectory: /home/admin/tester
gecos: Tester Ldap,,,
host: nikita
host: madoka
mail: tester@isw.student.khleuven.be
# search result
search: 2
result: 0 Success
# numResponses: 5
# numEntries: 4
But i can't perform the following search
ldapsearch -x -b "ou=People,dc=isw,dc=be" "(objectClass=iswAccount)"
version: 2
#
# filter: (objectClass=iswAccount)
# requesting: ALL
#
# search result
search: 2
result: 0 Success
# numResponses: 1
How come this doesn't work?
Also with another filter like (&(objectClass=iswAccount)(uid=tester)) (wich libnss-ldap needs as a filter) this doesn't work?
Anyone any hints on what i am doing wrong?
--
Leo .----- leo@e-concepts.be
____ / Eraly
\/