Hi, Please find the configuration files as attached.
When i run the below command i get the output ldapsearch -x -h 192.168,0.1 -D "cn=Manager,dc=example,dc=com" -b "dc=example,dc=com" -W but when i try either ldapsearch -x or ldapsearch -x -h 192.168.0.1 -b "cn=Manager,dc=example,dc=com" it shows : base <cn=Manager,dc=example,dc=com> with scope subtree filter: (objectclass=*) requesting: ALL #search result search: 2 result: 32 No such object #numResponse: 1 OS : SLES 11 SP1 LDAP : 2.4.20-0.4.29 What i have changed is insted of dynamic backend i am trying to use slapd.conf file so i have changed in /etc/sysconfig/openldap file OPENLDAP_CONFIG_BACKEND="files". Please suggest how to solve this. Regards, Neo On Wed, Sep 14, 2011 at 8:47 PM, Bill MacAllister <[email protected]> wrote: > > > --On Wednesday, September 14, 2011 07:46:17 PM +0200 pradyumna dash < > [email protected]> wrote: > > Hi, >> >> Yes i tried below >> >> ldapsearch -x -h l >> <http://somehost.com/>dap1.**example.com<http://dap1.example.com/>-b >> >> cn=Manager,dc=example,dc=com >> > > If that is the command line that you used no wonder you didn't get > the results you expected. > > > It asked me to provide the password i have provided that then it shows the >> same error, nothing came up. >> > > Why don't you provide exactly what you typed and and what the response > was? Just cut and paste it into a _text_ message. Sending HTML just > muddies the waters already murky waters. > > The -x requests a simple bind and since you have not provided a bind DN > or bind password it will attempt an anonymous bind. It is hard to believe > that you are seeing what you report. The host where the ldap server is > running is actually named 'ldap1.example.com'? > > > I have checked my ldap.conf as well it looks okay. >> > > Unless you were going to include the ldap.conf file this statement was > a waste of bytes. > > > Bill > > Regards, >> Neo >> >> On Wed, Sep 14, 2011 at 6:41 PM, Bill MacAllister <[email protected]> >> wrote: >> >> >>> >>> --On Wednesday, September 14, 2011 06:35:09 PM +0200 pradyumna dash < >>> [email protected]> wrote: >>> >>> Hi, >>> >>>> >>>> ldapsearch -x shows the content of LDAP database as well wothout any >>>> additional options. I can see the same in one of my servers,I took a >>>> dump >>>> of >>>> the running server by slapcat and restored the same in this server. >>>> >>>> I can see the data by slapcat but ldapsearch is not working. >>>> >>>> The box where ldap running fine its using slapd.d backend, but this >>>> server >>>> i >>>> have configured to run from slapd.conf file, can it be a issue with the >>>> DB >>>> backup and restore as they are both using different backend? >>>> >>>> Regards, >>>> Neo >>>> >>>> >>> Did you even try my suggestion? The error message that you got back, >>> i.e. >>> "32 no such object" is telling you that you have not supplied a baseDN >>> for the search. >>> >>> Bill >>> >>> P.S. Top posting to replies sucks. >>> >>> >>> On Wed, Sep 14, 2011 at 6:29 PM, Bill MacAllister <[email protected]> >>> >>>> wrote: >>>> >>>> >>>> >>>>> --On Wednesday, September 14, 2011 06:20:03 PM +0200 pradyumna dash < >>>>> [email protected]> wrote: >>>>> >>>>> I have fixed this by deleting the slapd.d and also changed the script >>>>> to >>>>> >>>>> read slapd.conf file but now >>>>>> >>>>>> when am trying ldapserach -x its showing 32 no such object >>>>>> >>>>>> but the below command works >>>>>> >>>>>> ldapsearch -LLL -Wx -D "cn=Manager,dc=mail,dc=domain,******dc=com >>>>>> >>>>>> why is that ? >>>>>> >>>>>> >>>>>> Because you did it wrong. There is not enough information in your >>>>> message to tell much more than you contacted an LDAP server and >>>>> got an error message. You might want to try using a fully specified >>>>> search and work back from there. For example: >>>>> >>>>> ldapsearch -x -h somehost.com -b cn=sometree,dc=domain,dc=com >>>>> >>>>> Bill >>>>> >>>>> >>>>> Regards, >>>>> >>>>> Neo >>>>>> On Wed, Sep 14, 2011 at 5:34 PM, pradyumna dash < >>>>>> [email protected] >>>>>> > wrote: >>>>>> >>>>>> Hi , >>>>>> >>>>>> >>>>>>> Can i disable cn=config module, I just want to use plain old >>>>>>> slapd.conf >>>>>>> file. How to disable that. So that LDAP wont use the directory. >>>>>>> >>>>>>> Am using SLES 11 SP1 and i tried deleteting the directory but if i am >>>>>>> unable to restart the service. >>>>>>> >>>>>>> Regards, >>>>>>> Neo >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> -- >>>>> >>>>> Bill MacAllister >>>>> Infrastructure Delivery Group, Stanford University >>>>> >>>>> >>>>> >>>>> >>> >>> -- >>> >>> Bill MacAllister >>> Infrastructure Delivery Group, Stanford University >>> >>> >>> > > > -- > > Bill MacAllister > Infrastructure Delivery Group, Stanford University > >
myldap.conf
Description: Binary data
myldap_1.conf
Description: Binary data
myslapd.conf
Description: Binary data
