soup4you2
June 17th, 2003, 12:01
ok i'll run you through a brief setup of something and hopefully somebody can point out my error because this is just pissing me off...
ok i have on my test/playbox a directory.ldif that says:
dn: ou=addressbook, dc=bsdhound, dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
objectClass: organizationalUnit
dc: bsdhound
o: BSDHound Web Services
ou: addressbook
i run
ldapadd -D 'dc=bsdhound,dc=com' -x -W -f directory.ldif
and it says that it inserted no problem....
then to test it i run
ldapsearch -b 'ou=addressbook, dc=bsdhound,dc=com' '(objectclass=*)'
and get the output
[code:1:5efc7bff1e]
version: 2
#
# filter: (objectclass=*)
# requesting: ALL
#
# addressbook, bsdhound, com
dn: ou=addressbook, dc=bsdhound, dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
objectClass: organizationalUnit
dc: bsdhound
o: BSDHound Web Services
ou: addressbook
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
[/code:1:5efc7bff1e]
ok good or at least i think it is...
so now to add in a contact or 2...
i made a file contact.ldif that states:
[code:1:5efc7bff1e]
dn: cn=Firstname1 Lastname1 ou=addressbook, dc=bsdhound, dc=com
objectClass: top
objectClass: person
objectClass: inetOrgPerson
cn: Firstname1 Lastname1
gn: Firstname1
sn: Lastname1
mail: user1@bsdhound.com
dn: cn=Firstname2 Lastname2 ou=addressbook, dc=bsdhound, dc=com
objectClass: top
objectClass: person
objectClass: inetOrgPerson
cn: Firstname2 Lastname2
gn: Firstname2
sn: Lastname2
mail: user2@bsdhound.com
[/code:1:5efc7bff1e]
then i add them in the same mannor as above and it says it inserted both no problems....
now if i execute a search
ldapsearch -b 'ou=addressbook, dc=bsdhound,dc=com' '(objectclass=*)'
i dont see them...... i also tryied replacing the objectclass=* to cn=*
but nothing... any ideas?
ok i have on my test/playbox a directory.ldif that says:
dn: ou=addressbook, dc=bsdhound, dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
objectClass: organizationalUnit
dc: bsdhound
o: BSDHound Web Services
ou: addressbook
i run
ldapadd -D 'dc=bsdhound,dc=com' -x -W -f directory.ldif
and it says that it inserted no problem....
then to test it i run
ldapsearch -b 'ou=addressbook, dc=bsdhound,dc=com' '(objectclass=*)'
and get the output
[code:1:5efc7bff1e]
version: 2
#
# filter: (objectclass=*)
# requesting: ALL
#
# addressbook, bsdhound, com
dn: ou=addressbook, dc=bsdhound, dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
objectClass: organizationalUnit
dc: bsdhound
o: BSDHound Web Services
ou: addressbook
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
[/code:1:5efc7bff1e]
ok good or at least i think it is...
so now to add in a contact or 2...
i made a file contact.ldif that states:
[code:1:5efc7bff1e]
dn: cn=Firstname1 Lastname1 ou=addressbook, dc=bsdhound, dc=com
objectClass: top
objectClass: person
objectClass: inetOrgPerson
cn: Firstname1 Lastname1
gn: Firstname1
sn: Lastname1
mail: user1@bsdhound.com
dn: cn=Firstname2 Lastname2 ou=addressbook, dc=bsdhound, dc=com
objectClass: top
objectClass: person
objectClass: inetOrgPerson
cn: Firstname2 Lastname2
gn: Firstname2
sn: Lastname2
mail: user2@bsdhound.com
[/code:1:5efc7bff1e]
then i add them in the same mannor as above and it says it inserted both no problems....
now if i execute a search
ldapsearch -b 'ou=addressbook, dc=bsdhound,dc=com' '(objectclass=*)'
i dont see them...... i also tryied replacing the objectclass=* to cn=*
but nothing... any ideas?