[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: LDAP query errors.
Great !!! thanks, I guess now I understand.
Regards
Raed Nashef
Consultant Analyst
Network Planning Group
BAX Global, Inc.
Tel: 949.752.1212 x.2672
Email: rnashef@baxglobal.com
http://www.baxglobal.com
Karsten Künne
<kuenne@rentec.com> To: "Raed Nashef" <rnashef@baxglobal.com>, Darren Gamble
<Darren.Gamble@sjrb.ca>
Sent by: cc: "Rozonkiewiecz, Mitchell" <Mitchell.Rozonkiewiecz@ca.com>,
owner-openldap-software openldap-software@OpenLDAP.org
@OpenLDAP.org Subject: Re: LDAP query errors.
03/06/2002 01:30 PM
On Wednesday 06 March 2002 16:04, Raed Nashef wrote:
| How about this entry ??? It does have ou=america, and an
| objectclass=person !!!!!
|
| Am I missing something here ????
|
Nope, it has not! It actually has no "ou" attribute at all! The "ou" only
appears in the dn but not in the attribute list.
|
| dn: CN=Raed Nashef,OU=AMERICA,O=BAX
| cn: Raed Nashef
| objectClass: top
| objectClass: person
| objectClass: organizationalPerson
| objectClass: inetOrgPerson
| mail: rnashef@baxglobal.com
| sn: Nashef
| creatorsName: cn=Manager,o=bax
| createTimestamp: 20020228150820Z
| modifiersName: cn=Manager,o=bax
| modifyTimestamp: 20020228150820Z
|
|
| Regards
|
| Raed Nashef
| Consultant Analyst
| Network Planning Group
| BAX Global, Inc.
| Tel: 949.752.1212 x.2672
| Email: rnashef@baxglobal.com
| http://www.baxglobal.com
|
|
|
| Darren Gamble
| <Darren.Gamble@sj To: "'Raed Nashef'"
| <rnashef@baxglobal.com>, "Rozonkiewiecz, rb.ca>
Mitchell"
| <Mitchell.Rozonkiewiecz@ca.com> cc: openldap-software@OpenLDAP.org
| Subject: RE: LDAP query errors. 03/06/2002 12:22
| PM
|
|
|
|
|
|
| Good day,
|
| I am not sure why you would have expected that query to work. According
to
| the slapcat, there are no records that have both objectclass=person and
| ou=AMERICA set.
|
| Did you mean to query "or" (with a "|") instead of "and" (with a "&") ?
|
| ============================
| Darren Gamble
| Planner, Regional Services
| Shaw Cablesystems GP
| 630 - 3rd Avenue SW
| Calgary, Alberta, Canada
| T2P 4L4
| (403) 781-4948
|
|
| -----Original Message-----
| From: Raed Nashef [mailto:rnashef@baxglobal.com]
| Sent: Wednesday, March 06, 2002 1:14 PM
| To: Rozonkiewiecz, Mitchell
| Cc: openldap-software@OpenLDAP.org
| Subject: RE: LDAP query errors.
|
|
| The base dn fixed the "no such object" problem. But still can not get
any
| data back. This is what I get now:
|
| #ldapsearch -x -b o=bax "(&(objectclass=person)(ou=AMERICA))"
| version: 2
|
| # filter: (&(objectclass=person)(ou=AMERICA))
| #requesting: ALL
| #
|
| #search result
| search: 2
| result: 0 Success
|
| # numResponses: 1
|
| The following query does work though !!!
|
| #ldapsearch -x -b o=bax "(cn=*)"
|
|
|
|
| The output of "slapcat" may shed some light on what the problem is !!!!
| There it is:
|
| ######## slapcat output
| dn: ou=AMERICA,o=bax
| ou: AMERICA
| objectClass: organizationalUnit
| creatorsName: cn=Manager,o=bax
| createTimestamp: 20020228081307Z
| modifiersName: cn=Manager,o=bax
| modifyTimestamp: 20020228081307Z
|
| dn: ou=AFRICA,o=bax
| objectClass: organizationalUnit
| creatorsName: cn=Manager,o=bax
| createTimestamp: 20020228081307Z
| ou: AFRICA
| modifiersName: cn=Manager,o=bax
| modifyTimestamp: 20020228150348Z
|
| dn: ou=AGENT,o=bax
| objectClass: organizationalUnit
| creatorsName: cn=Manager,o=bax
| createTimestamp: 20020228081307Z
| ou: AGENT
| modifiersName: cn=Manager,o=bax
| modifyTimestamp: 20020228150348Z
|
| dn: ou=EUROPE,o=bax
| objectClass: organizationalUnit
| creatorsName: cn=Manager,o=bax
| createTimestamp: 20020228081307Z
| ou: EUROPE
| modifiersName: cn=Manager,o=bax
| modifyTimestamp: 20020228150348Z
|
| dn: ou=PACIFIC,o=bax
| objectClass: organizationalUnit
| creatorsName: cn=Manager,o=bax
| createTimestamp: 20020228081307Z
| ou: PACIFIC
| modifiersName: cn=Manager,o=bax
| modifyTimestamp: 20020228150348Z
|
| dn: CN=Raed Nashef,OU=AMERICA,O=BAX
| cn: Raed Nashef
| objectClass: top
| objectClass: person
| objectClass: organizationalPerson
| objectClass: inetOrgPerson
| mail: rnashef@baxglobal.com
| sn: Nashef
| creatorsName: cn=Manager,o=bax
| createTimestamp: 20020228150820Z
| modifiersName: cn=Manager,o=bax
| modifyTimestamp: 20020228150820Z
|
| ##############
|
|
|
| Regards
|
| Raed Nashef
| Consultant Analyst
| Network Planning Group
| BAX Global, Inc.
| Tel: 949.752.1212 x.2672
| Email: rnashef@baxglobal.com
| http://www.baxglobal.com
|
|
|
|
| "Rozonkiewiecz,
|
| Mitchell" To: Raed Nashef
| <rnashef@baxglobal.com>
| <Mitchell.Rozonkie cc:
|
| wiecz@ca.com> Subject: RE: LDAP query
| errors.
|
|
|
|
| 03/05/2002 06:49
|
| PM
|
|
|
|
|
|
|
|
|
| try using a base dn of ...
|
| -b o=bax
|
|
| Mitch
|
|
| -----Original Message-----
| From: Raed Nashef [mailto:rnashef@baxglobal.com]
| Sent: Tuesday, March 05, 2002 5:05 PM
| To: openldap-software@OpenLDAP.org
| Subject: LDAP query errors.
|
|
| OK, here we go.....
|
| OpenLDAP 2.0.23 running on RedHat 7.1.
|
|
| The slapd.conf looks like the following:
| ##### slapd.conf #####
| include /usr/local/etc/openldap/schema/core.schema
| include /usr/local/etc/openldap/schema/cosine.schema
| include /usr/local/etc/openldap/schema/inetorgperson.schema
|
| pidfile /usr/local/var/slapd.pid
| argsfile /usr/local/var/slapd.args
|
| database ldbm
| suffix "o=bax"
| rootdn "cn=Maager,o=bax"
| rootpw secret
| directory /usr/local/var/openldap-ldbm
| index cn,mail pres,sub,eq
| index objectClass pres,eq
| ######################
|
| Loaded the following LDIF successfully:
|
| (Embedded image moved to file: pic28145.pcx)
|
| Next I loaded the following LDIF entry, successfully!!
|
| dn: CN= Raed Nashef, OU=AGENT,O=BAX
| objectclass: top
| objectclass: person
| objectclass: organizationalPerson
| objectclass: inetOrgPerson
| mail: rnashef@baxglobal.com
| sn: nashef
|
| Next.... I try to submit the following query,
|
| ldapsearch -x "(&(objectclass=person)(ou=AGENT))" dn
|
| and that's when it fails with the following output:
|
| #
| # filter: (&(objectclass=person)(ou=AGENT))
| # requesting: dn
| #
|
| # search result
| search: 2
| result: 32 No such object
|
| # numResponses: 1
|
|
|
| Any ideas what's going on ??!!!
|
|
| TIA,
| -Raed.
--
Karsten.
"Things should be made as simple as possible, but not any simpler."
-Albert Einstein