Issue 565 - Probelm with slapd.conf
Summary: Probelm with slapd.conf
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-06-06 05:04 UTC by Louis Lee Eng Kwang
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Louis Lee Eng Kwang 2000-06-06 05:04:31 UTC
Hi,

I have finish install the ldap on my server.  But when i try to execute a ldap command, it show an error message 'can't contact to Lapd server" .  How can i configure both slapd.conf and ldap.conf.  I did go through the example that publish on your site.  Can you help me to check my slapd.conf configuration :

-----------------------------------------------------------

include    /usr/local/etc/openldap/slapd.at.conf
include    /usr/local/etc/openldap/slapd.oc.conf

referral    ldap://ldap.itd.umich.edu


database    ldbm
suffix    "dc=car, dc=ptk, dc=com"
rootdn    "cn=Manager, dc=car,dc=ptk, dc=com"
rootpw    password

directory     /usr/local/etc/openldap
---------------------------------------------------------------


I also created a myldif.ldif file with the content below:
------------------------
dn: dc=skali, dc=com
dc: skali
o= My Company
objectclass: organization
objectclass: dcObject
rootpw: secret

dn: cn=Manager, dc=skali, dc=com
cn: Manager
sn: Manager
objectclass: person
rootpw: secret
---------------------------------------------

Next, i execute ldapadd -D "cn=Manager, dc=car, dc=ptk, dc=com" -W < myldif.ldif  

Then it will show the error message that i mention before. why? Do i need to setup any database? Is myldif.ldif is my Database file?




Regards,
Louis Lee
Comment 1 Kurt Zeilenga 2000-06-07 05:01:45 UTC
After checking the FAQ and archivees, please direct software
use questions to our software mailing list.  You must be
subscibed to post.

	Kurt

At 05:02 AM 6/6/00 GMT, eklee@skali.com wrote:
>I have finish install the ldap on my server.  But when i try to execute =
>a ldap command, it show an error message 'can't contact to Lapd server" =
>.  How can i configure both slapd.conf and ldap.conf.  I did go through =
>the example that publish on your site.  Can you help me to check my =
>slapd.conf configuration :
>
>-----------------------------------------------------------
>
>include    /usr/local/etc/openldap/slapd.at.conf
>include    /usr/local/etc/openldap/slapd.oc.conf
>
>referral    ldap://ldap.itd.umich.edu
>
>
>database    ldbm
>suffix    "dc=3Dcar, dc=3Dptk, dc=3Dcom"
>rootdn    "cn=3DManager, dc=3Dcar,dc=3Dptk, dc=3Dcom"
>rootpw    password
>
>directory     /usr/local/etc/openldap
>---------------------------------------------------------------
>
>
>I also created a myldif.ldif file with the content below:
>------------------------
>dn: dc=3Dskali, dc=3Dcom
>dc: skali
>o=3D My Company
>objectclass: organization
>objectclass: dcObject
>rootpw: secret
>
>dn: cn=3DManager, dc=3Dskali, dc=3Dcom
>cn: Manager
>sn: Manager
>objectclass: person
>rootpw: secret
>---------------------------------------------
>
>Next, i execute ldapadd -D "cn=3DManager, dc=3Dcar, dc=3Dptk, dc=3Dcom" =
>-W < myldif.ldif =20
>
>Then it will show the error message that i mention before. why? Do i =
>need to setup any database? Is myldif.ldif is my Database file?
>
>
>
>
>Regards,
>Louis Lee
>
>------=_NextPart_000_00FF_01BFCFB7.C24F3980
>Content-Type: text/html;
>	charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META content=3D"text/html; charset=3Diso-8859-1" =
>http-equiv=3DContent-Type>
><META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY bgColor=3D#ffffff>
><DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>I have finish install the ldap on my =
>server.&nbsp;=20
>But when i try to execute a ldap command, it show an error message =
>'can't=20
>contact to Lapd server" .&nbsp; How can i configure both <FONT=20
>color=3D#ff0000>slapd.conf and ldap.conf</FONT>.&nbsp; I did go through =
>the=20
>example that publish on your site.&nbsp; Can you help me to =
>check&nbsp;my=20
>slapd.conf configuration :</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial=20
>size=3D2>-----------------------------------------------------------</FON=
>T></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>include&nbsp;&nbsp;&nbsp;=20
>/usr/local/etc/openldap/slapd.at.conf</FONT></DIV>
><DIV><FONT face=3DArial size=3D2>include&nbsp;&nbsp;&nbsp;=20
>/usr/local/etc/openldap/slapd.oc.conf</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>referral&nbsp;&nbsp;&nbsp; <A=20
>href=3D"ldap://ldap.itd.umich.edu">ldap://ldap.itd.umich.edu</A></FONT></=
>DIV>
><DIV>&nbsp;</DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>database&nbsp;&nbsp;&nbsp; =
>ldbm</FONT></DIV>
><DIV><FONT face=3DArial size=3D2>suffix&nbsp;&nbsp;&nbsp; "dc=3Dcar, =
>dc=3Dptk,=20
>dc=3Dcom"</FONT></DIV>
><DIV><FONT face=3DArial size=3D2>rootdn&nbsp;&nbsp;&nbsp; "cn=3DManager, =
>
>dc=3Dcar,dc=3Dptk, dc=3Dcom"</FONT></DIV>
><DIV><FONT face=3DArial size=3D2>rootpw&nbsp;&nbsp;&nbsp; =
>password</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>directory &nbsp;&nbsp;&nbsp;=20
>/usr/local/etc/openldap</FONT></DIV>
><DIV><FONT face=3DArial=20
>size=3D2>---------------------------------------------------------------<=
>/FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>
><DIV>I also&nbsp;created a myldif.ldif file with the content =
>below:</DIV>
><DIV>------------------------</DIV>
><DIV><FONT color=3D#008000>dn: dc=3Dskali, dc=3Dcom<BR>dc: skali<BR>o=3D =
>My=20
>Company<BR>objectclass: organization<BR>objectclass: dcObject<BR>rootpw: =
>
>secret</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT color=3D#008000>dn: cn=3DManager, dc=3Dskali, dc=3Dcom<BR>cn: =
>Manager<BR>sn:=20
>Manager<BR>objectclass: person<BR>rootpw: secret</FONT></DIV>
><DIV>---------------------------------------------</DIV>
><DIV></FONT>&nbsp;</DIV></DIV>
><DIV><FONT face=3DArial size=3D2>Next, i execute <FONT =
>color=3D#008000>ldapadd -D=20
>"cn=3DManager, dc=3Dcar, dc=3Dptk, dc=3Dcom" -W &lt; myldif.ldif&nbsp;=20
></FONT></FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>Then it will show the error message =
>that i mention=20
>before. why? Do i need to setup any database? Is myldif.ldif is my =
>Database=20
>file?</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV>&nbsp;</DIV>
><DIV>&nbsp;</DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>Regards,<BR>Louis =
>Lee</FONT></DIV></BODY></HTML>
>
>------=_NextPart_000_00FF_01BFCFB7.C24F3980--
>
>
>
>
Comment 2 Kurt Zeilenga 2000-06-08 07:41:20 UTC
changed notes
changed state Open to Closed
Comment 3 OpenLDAP project 2014-08-01 21:06:11 UTC
redirect