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

Qustion of Multiple Database



Hi
  I am trying to access two database wth the same server
 here is a sample of my slapd.conf file
 
 
#Slapd.conf File
 
 
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/misc.schema
 
#inclusion of local schema file
 
access to * by * read
 
pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args
 

#database One defination
database ldbm
suffix    "o=XYZ"
directory  /usr/local/one-database
rootdn   "cn=xxx,ou=xxx,l=xxx,c=xx,o=xyz"
rootpw secret     
# Firs database defination index attribute definition
index uid pres,eq
index cn,ou,sn,mail pres,eq,sub
index objectClass eq
 

#Frst database access controll
 
access to attr=userPassword
        by self write
        by anonymous auth
 by dn="cn=xxx,ou=xxx,l=xxx,c=xx,o=xxx" write
        by * none
 
access to *
        by self write
 by dn="cn=Sanjay Sharma,ou=Admin,l=Mohan Cooperative,c=in,o=EscoCrm" write
        by * read
                     
#End OF First DATABASE SPECIFICATIONS
 
 
 
# SPECIFICATIONS Of The Second Database
# ldbm database definitions
 
database ldbm
suffix  "o=ABC"
directory /usr/local/var/openldap-ldbm
rootdn  "cn=xxx,ou=xxxn,l=xxx,c=xx,o=xxx"
rootpw shsecrethai
 

#index attribute definition
index uid pres,eq
index cn,ou,sn,mail pres,eq,sub
index objectClass eq
 

#access controll
# The following describes which user can perform what kind of operation
# The user password can be used for authentication("anonomys auth") 
# The user password attribute can be modified by the user himself and the admin
# Others cant read or write the password attribute
access to attr=userPassword
        by self write
        by anonymous auth
 by dn="cn=xxx,ou=xxx,l=xxx,c=xx,o=xxx" write
        by * none
 
access to *
        by self write
 by dn="cn=xxx,ou=xxx,l=xxx,c=m,o=xxx" write
        by * read
#by users read
#Loglevel specifications
#Loglevel 1,2,32,128,256       
loglevel 421
 
######End Of Slapd.Conf File####################
 
 
One of my databses just contain one entry that is of the base just base is defined
where as my other database contains great no of entries.
now whe i m giving the following command
 
This command is given for the database which has only one entry
 
ldapsearch -vx "(objectclass=*)" -D "cn=xxx,ou=xxx,l=xxx,c=xx,o=xxx" -w xxx 
 
but it is searching the other database
 
can anybody have a clue
 
redgards and greeting
Puneet