<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<META content="MSHTML 6.00.2900.5726" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Приветствую всех!</FONT></DIV>
<DIV><FONT face=Arial size=2>Настраиваю PDC. Ставлю значит ldap, samba, и весь
остальной нужный софт...</FONT></DIV>
<DIV><FONT face=Arial size=2>Но ни черта не работает.... Подскажите в чем
проблема? Все что выводится и пишется в логи все тут.</FONT></DIV>
<DIV><FONT face=Arial size=2>конфиг sldap.conf:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># This is the main slapd configuration file. See
slapd.conf(5) for more<BR># info on the configuration options.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>#######################################################################<BR>#
Global Directives:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Features to permit<BR>#allow bind_v2</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Schema and objectClass
definitions<BR>include
/etc/ldap/schema/samba.schema<BR>include
/etc/ldap/schema/misc.schema<BR>include
/etc/ldap/schema/core.schema<BR>include
/etc/ldap/schema/cosine.schema<BR>include
/etc/ldap/schema/nis.schema<BR>include
/etc/ldap/schema/inetorgperson.schema<BR>include /etc/ldap/schema/openldap.schema</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Where the pid file is put. The init.d script<BR>#
will not stop the server if you change
this.<BR>pidfile
/var/run/slapd/slapd.pid</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># List of arguments that were passed to the
server<BR>argsfile
/var/run/slapd/slapd.args</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Read slapd.conf(5) for possible
values<BR>loglevel 256</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Where the dynamically loaded modules are
stored<BR>modulepath /usr/lib/ldap<BR>moduleload back_bdb</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># The maximum number of entries that is returned
for a search operation<BR>sizelimit 500</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># The tool-threads parameter sets the actual amount
of cpu's that is used<BR># for indexing.<BR>tool-threads 1</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>#######################################################################<BR>#
Specific Backend Directives for bdb:<BR># Backend specific directives apply to
this backend until another<BR># 'backend' directive
occurs<BR>backend bdb</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>#######################################################################<BR>#
Specific Backend Directives for 'other':<BR># Backend specific directives apply
to this backend until another<BR># 'backend' directive
occurs<BR>#backend <other></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>#######################################################################<BR>#
Specific Directives for database #1, of type bdb:<BR># Database specific
directives apply to this databasse until another<BR># 'database' directive
occurs<BR>database ldbm</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># The base of your directory in database
#1<BR>suffix
"dc=sonp,dc=org"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># rootdn directive for specifying a superuser on
the database. This is needed<BR># for
syncrepl.<BR>#rootdn
"cn=admin,dc=sonp,dc=org"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Where the database file are physically stored for
database #1<BR>directory
"/var/lib/ldap"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># The dbconfig settings are used to generate a
DB_CONFIG file the first<BR># time slapd starts. They do NOT override
existing an existing DB_CONFIG<BR># file. You should therefore change
these settings in DB_CONFIG directly<BR># or remove DB_CONFIG and restart slapd
for changes to take effect.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># For the Debian package we use 2MB as default but
be sure to update this<BR># value if you have plenty of RAM<BR>dbconfig
set_cachesize 0 2097152 0</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Sven Hartge reported that he had to set this
value incredibly high<BR># to get slapd running at all. See <A
href="http://bugs.debian.org/303057">http://bugs.debian.org/303057</A> for
more<BR># information.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Number of objects that can be locked at the same
time.<BR>dbconfig set_lk_max_objects 1500<BR># Number of locks (both requested
and granted)<BR>dbconfig set_lk_max_locks 1500<BR># Number of
lockers<BR>dbconfig set_lk_max_lockers 1500</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Indexing options for database
#1<BR>index
objectClass
eq<BR>index objectClass,uid,uidNumber,gidNumber eq<BR>index cn,mail,surname,givename eq,subinitial<BR>index sambaSID eq<BR>index sambaPrimaryGroupSID eq<BR>index sambaDomainName eq</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Save the time that the entry gets modified, for
database #1<BR>lastmod
on</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Checkpoint the BerkeleyDB database periodically
in case of system<BR># failure and to speed slapd
shutdown.<BR>checkpoint 512 30</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Where to store the replica logs for database
#1<BR># replogfile /var/lib/ldap/replog</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># The userPassword by default can be changed<BR>#
by the entry owning it if they are authenticated.<BR># Others should not be able
to see it, except the<BR># admin entry below<BR># These access lines apply to
database #1 only<BR>access to
attrs=userPassword,shadowLastChange<BR>
by dn="cn=admin,dc=sonp,dc=org"
write<BR> by anonymous
auth<BR> by self
write<BR> by * none</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>acces to
attrs=sambaLMPassword,sambaNTPassword<BR> by dn="cn=admin,dc=sonp,dc=org"
write<BR> by * none<BR> access to *<BR> by *
read</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Ensure read access to the base for things
like<BR># supportedSASLMechanisms. Without this you may<BR># have problems
with SASL not knowing what<BR># mechanisms are available and the like.<BR># Note
that this is covered by the 'access to *'<BR># ACL below too but if you change
that as people<BR># are wont to do you'll still need this if you<BR># want SASL
(and possible other things) to work <BR># happily.<BR>access to dn.base="" by *
read</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># The admin dn has full write access, everyone
else<BR># can read everything.<BR>access to
*<BR> by dn="cn=admin,dc=sonp,dc=org"
write<BR> by * read</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># For Netscape Roaming support, each user gets a
roaming<BR># profile for which they have write access to<BR>#access to
dn=".*,ou=Roaming,o=morsnet"<BR># by
dn="cn=admin,dc=sonp,dc=org"
write<BR># by dnattr=owner
write</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>#######################################################################<BR>#
Specific Directives for database #2, of type 'other' (can be bdb too):<BR>#
Database specific directives apply to this databasse until another<BR>#
'database' directive
occurs<BR>#database
<other></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># The base of your directory for database
#2<BR>#suffix "dc=debian,dc=org" </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Затем патаюсь запустить и вот что
получается...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>deblin:/etc# init.d/slapd start<BR>Starting
OpenLDAP: slapd - failed.<BR>The operation failed but no output was produced.
For hints on what went<BR>wrong please refer to the system's logfiles (e.g.
/var/log/syslog) or<BR>try running the daemon in Debug mode like via "slapd -d
16383" (warning:<BR>this will create copious output).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Below, you can find the command line options used
by this script to<BR>run slapd. Do not forget to specify those options if
you<BR>want to look to debugging output:<BR> slapd -g openldap -u openldap
-f /etc/ldap/slapd.con</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>А вот что показывает syslog:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Mar 27 11:47:37 deblin slapd[22997]: @(#)
$OpenLDAP: slapd 2.4.11 (Oct 12 2008 04:13:21) <A
href="mailto:$#012#011buildd@ninsei:/build/buildd/openldap-2.4.11/debian/build/s">$#012#011buildd@ninsei:/build/buildd/openldap-2.4.11/debian/build/s</A><BR>ervers/slapd<BR>Mar
27 11:47:37 deblin slapd[22997]: slapd stopped.<BR>Mar 27 11:47:37 deblin
slapd[22997]: connections_destroy: nothing to destroy.
</FONT></DIV></BODY></HTML>