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

Bad SubSearch



Hi everybody.

I'm trying to make a search in a iPlanet Directory Server 5.0, but I dont get the results I want and I don't know if its a problem of iPlanet's ldapsearch or a bad configuration of my directory, cause I'm a newbie in LDAP.

I would like something like this (I dont get this, I have wrote it):


C:\iplanet\ias6\shared\bin>ldapsearch -b "ou=ugame,dc=unigame,dc=es" -D "cn=DM" -w "aaa" "(&(entity=5)(nui=14))" -s sub


version: 1
dn: nui=14,ou=ugame,dc=unigame,dc=es
objectClass: inetorgpersonunigame
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
psp: 12344321
cn: Perico
sn: De los Palotes
nui: 14
dn: perfil=Bomberos@CSI,nui=14,ou=ugame,dc=unigame,dc=es
objectClass: colecent
objectClass: top
entity: 5
fcaduca: 2006-09-30 00:00:00.0
perfil: Bomberos@CSI
colective: 000020000000000


But this is all I get:



C:\iplanet\ias6\shared\bin>ldapsearch -b "dc=unigame,dc=es" -D "cn=DM" -w "aaa" "nui=14"

version: 1
dn: nui=14,ou=ugame,dc=unigame,dc=es
objectClass: inetorgpersonunigame
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
psp: 12344321
cn: Perico
sn: De los Palotes
nui: 14



C:\iplanet\ias6\shared\bin>ldapsearch -b "dc=unigame,dc=es" -D "cn=DM" -w "aaa" "nui=14" -s sub

version: 1
dn: nui=14,ou=ugame,dc=unigame,dc=es



C:\iplanet\ias6\shared\bin>ldapsearch -b "ou=ugame,dc=unigame,dc=es" -D "cn=DM" -w "aaa" "nui=14"

version: 1
dn: nui=14,ou=ugame,dc=unigame,dc=es
objectClass: inetorgpersonunigame
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
psp: 12344321
cn: Perico
sn: De los Palotes
nui: 14



C:\iplanet\ias6\shared\bin>ldapsearch -b "ou=ugame,dc=unigame,dc=es" -D "cn=DM" -w "aaa" "entity=5"

(LOTS OF ENTRIES)



C:\iplanet\ias6\shared\bin>ldapsearch -b "nui=14,ou=ugame,dc=unigame,dc=es" -D "cn=DM" -w "aaa" "entity=5"

version: 1
dn: perfil=Bomberos@CSI,nui=14,ou=ugame,dc=unigame,dc=es
objectClass: colecent
objectClass: top
entity: 5
fcaduca: 2006-09-30 00:00:00.0
perfil: Bomberos@CSI
colective: 000020000000000



C:\iplanet\ias6\shared\bin>ldapsearch -b "nui=14,ou=ugame,dc=unigame,dc=es" -D "cn=DM" -w "aaa" "(&(entity=5)(nui=14))"

(NOTHING)

Could somebody help me? Thanks a lot.

--
Daniel Merino