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

ldapsearch Problem



Hi every one
 
I have a ldap search problem
 
My ldapsearch queries and responses:
 
1) # ldapsearch -x -b 'dc=rspllinux, dc=com' 'objectClass=*'
    version: 2
#
# filter: objectClass=*
# requesting: ALL
#
 
# search result
search: 2
result: 0 Success
 
# numResponses: 1
 
2) # ldapsearch -x -b 'ou=Systems Department, dc=rspllinux,dc=com' 'objectClass=*'
version: 2
 
#
# filter: objectClass=*
# requesting: ALL
#
 
# search result
search: 2
result: 0 Success
 
# numResponses: 1
 
My Question why cant i see the entries i have put in it
 
My slapd.conf
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
database        ldbm
suffix          "dc=rspllinux,dc=com"
#suffix         "o=My Organization Name,c=US"
rootdn          "cn=Manager,dc=rspllinux,dc=com"
#rootdn         "cn=Manager,o=My Organization Name,c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory       /usr/local/var/openldap-ldbm
# Indices to maintain
index   objectClass     eq
#sasl-realm "LATER.DUDE"
#sasl-secprops none
 
defaultaccess  read
access to * by self write
        by dn="cn=Manager,dc=rspllinux,dc=com" write
 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
My database file looks like this :
 
*****************************************************************
dn: dc=rspllinux,dc=com
dc: Rishabh Software
objectClass: dcObject
objectClass: organization
o: Rishabh Software
 
dn: ou=Systems Department, dc=rspllinux,dc=com
ou: Systems Department
objectClass: top
objectClass: organizationalUnit
 
dn: cn=Shiv,ou=Systems Department, dc=rspllinux,dc=com
ou: Systems Department
objectClass: top
objectClass: person
objectClass: organizationalPerson
sn: Agrawal
title: Chief General Manager
cn: Shiv
 
dn: ou=Marketing, dc=rspllinux,dc=com
ou: Marketing
objectClass: top
objectClass: organizationalUnit
 
dn: cn=Gaurang Mehta,ou=Marketing, dc=rspllinux,dc=com
ou: Marketing
objectClass: top
objectClass: person
objectClass: organizationalPerson
sn: Mehta
title: Marketing Manager
cn: Gaurang
*****************************************************************
 
Can any one help where i am doing wrong while searching ?
 
Regards
Binoy
 
                   ++++++++++++++++++++++++++++++++++++
                      Don't steal, the government hates competition.
                   ++++++++++++++++++++++++++++++++++++