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

Probelm with slapd.conf (ITS#565)



This is a multi-part message in MIME format.

------=_NextPart_000_00FF_01BFCFB7.C24F3980
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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=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--