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

Re: portingofopenldaptowin32+ldapsearch



Md Majeedullah Khan wrote:
> 
> HI,
>         I am thru with porting of openldap to win32,and I am able to add the
> entries thru 'slapadd' tool,but I am not able to searchthe same thru
> "ldapsearch" tool ,for ur convinience I am attaching my 'slapd.conf' and the
> command which I submitted.
> 
> eagerly waiting for ur reply
> 
> /*********************SLAPD.CONF FILE************************************/
> # $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20 23:32:43
> kurt Exp $
> #
> # See slapd.conf(5) for details on configuration options.
> # This file should NOT be world readable.
> #
> #include                %SYSCONFDIR%/schema/core.schema
> include         c:/openldap/schema/core.schema
> 
> # Define global ACLs to disable default read access.
> access to * by * write
> 
> # Do not enable referrals until AFTER you have a working directory
> # service AND an understanding of referrals.
> #referral       ldap://root.openldap.org
> 
> #pidfile        %LOCALSTATEDIR%/slapd.pid
> #argsfile       %LOCALSTATEDIR%/slapd.args
> pidfile c:/openldap/slapd.pid
> argsfile        c:/openldap/slapd.args
> 
> # Load dynamic backend modules:
> # modulepath    %MODULEDIR%
> # moduleload    back_ldap.la
> # moduleload    back_ldbm.la
> # moduleload    back_passwd.la
> # moduleload    back_shell.la
> #modulepath       c:\\openldap\\libdb32d.dll
> #moduleload       back_ldbm.la
> #######################################################################
> # ldbm database definitions
> #######################################################################
> 
> database        ldbm
> suffix          "o=magnaquest,c=IN"
> #suffix         "o=My Organization Name,c=US"
> rootdn          "cn=Manager,o=magnaquest,c=IN"
> #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          bmitians
> # The database directory MUST exist prior to running slapd AND
> # should only be accessible by the slapd/tools. Mode 700 recommended.
> #directory      %LOCALSTATEDIR%/openldap-ldbm
> directory       c:/openldap/openldap-ldbm
> 
> # Indices to maintain
> index   objectClass     eq
> /********************END OF SLAPD.cONF**********************************/
> /*********************ENTRIES I WAS ABLE TO ADD***********************/

Here you need to add the base entry

dn: o=magnaquest,c=IN
objectClass: organization
o: magnaquest

> dn: cn=nagas,o=magnaquest,c=IN
> cn: nagaprsada
> sn: vellanki
> userPassword: bmitians
> objectclass: person
> 
> dn: cn=raghuram,o=magnaquest,c=IN
> cn: raghuram
> sn: sripada
> userPassword: bmitians
> objectclass: person
> /*********************************************************************/
> When  I give the following comman for search I got the following error..PL
> see as why I am getting this.
> C:\OpenLdap>slapd-search -h 192.168.100.210 -p 389 -b "o=magnaquest,c=IN" -f
> "sn
> =khan" -l 2
> PID=47 - Search(8): base="o=magnaquest,c=IN", filter="sn=khan".
> ldap_search: No such object
> ldap_search: No such object
> ldap_search: No such object
> ldap_search: No such object
> ldap_search: No such object
> ldap_search: No such object
> ldap_search: No such object
> ldap_search: No such object
>  PID=47 - Search done.

Pierangelo.

-- 
Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 |
mailto:pierangelo.masarati@polimi.it
via La Masa 34, 20156 Milano, Italy   |
http://www.aero.polimi.it/~masarati