Archiv verlassen und diese Seite im Standarddesign anzeigen : Ldap_Bind Cant contact Server (-1)
Hallo
ich ahtte nun die Idee einen Ldapserver aufzusetzen mit slapd.conf und ldap.conf hat auch alles geklappt nur nun wenn ich ldapadd ausführe bekomm ich den fehler "Ldap_bind Cant contact Ldap Server (-1)" und nun weiß ich einfach nicht mehr weiter würde mich sehr über eure Hilfe freuen.....
Und wir uns ueber verwertbare Infos.
Um genau zu sein, slapd.conf, die ldif-Datei, die du versuchst zu importieren, den genauen Befehl mit dem du das versuchst und die Ausgabe von "ps -ax".
ps -ax
PID TTY STAT TIME COMMAND
1 ? S 0:02 init [5]
2 ? SN 0:00 [ksoftirqd/0]
3 ? S< 0:00 [events/0]
4 ? S< 0:00 [khelper]
5 ? S< 0:00 [kthread]
7 ? S< 0:00 [kblockd/0]
55 ? S 0:00 [pdflush]
56 ? S 0:01 [pdflush]
58 ? S< 0:00 [aio/0]
57 ? S 0:00 [kswapd0]
264 ? S< 0:00 [cqueue/0]
265 ? S< 0:00 [kseriod]
303 ? S< 0:00 [kpsmoused]
761 ? S< 0:00 [scsi_eh_0]
841 ? S< 0:00 [reiserfs/0]
898 ? S< 0:00 [khubd]
1980 ? Ss 0:00 /sbin/syslog-ng
1983 ? Ss 0:00 /sbin/klogd -c 1 -x -x
2007 ? Ss 0:00 /usr/bin/dbus-daemon --system
2008 ? Ss 0:00 /sbin/resmgrd
2020 ? Ss 0:02 /usr/sbin/hald --daemon=yes --retain-privileges
2062 ? Ss 0:00 /usr/sbin/dhcdbd --system
2069 ? Ss 0:00 /usr/sbin/NetworkManagerDispatcher
2079 ? Ssl 0:00 /usr/sbin/NetworkManager
2155 ? Ss 0:00 /sbin/portmap
2173 ? S 0:03 hald-addon-storage
2226 ? Ss 0:00 /usr/sbin/nmbd -D -s /etc/samba/smb.conf
2552 ? Ss 0:00 /usr/sbin/smbd -D -s /etc/samba/smb.conf
2574 ? S 0:00 /usr/sbin/smbd -D -s /etc/samba/smb.conf
2624 ? S 0:00 /usr/sbin/powersaved -d -v 3
2635 ? Ss 0:00 /usr/lib/postfix/master
2643 ? S 0:00 qmgr -l -t fifo -u
2653 ? Ss 0:01 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
2674 ? Ss 0:00 /usr/sbin/cron
2689 ? Ss 0:00 /usr/sbin/xinetd
2702 ? Ss 0:00 /usr/X11R6/bin/xdm
2704 tty7 Ss+ 0:01 /usr/X11R6/bin/X -nolisten tcp -br vt7 -auth /var/lib/xdm/authdir/authfiles/A:0-Jn3JnA
2708 tty1 Ss+ 0:00 /sbin/mingetty --noclear tty1
2709 tty2 Ss+ 0:00 /sbin/mingetty tty2
2710 tty3 Ss+ 0:00 /sbin/mingetty tty3
2711 tty4 Ss+ 0:00 /sbin/mingetty tty4
2712 tty5 Ss+ 0:00 /sbin/mingetty tty5
2715 tty6 Ss+ 0:00 /sbin/mingetty tty6
2716 ? S 0:00 -:0
2769 ? Ss 0:00 /usr/X11R6/bin/xconsole -notify -nostdin -verbose -exitOnFail 2094 ? Ss 0:18 zmd /usr/lib/zmd/zmd.exe --sleep 85492
2994 ? Ssl 0:00 /usr/lib/openldap/slapd -h ldap:/// -u ldap -g ldap -o slp=on 4057 ? S 0:00 pickup -l -t fifo -u
4381 ? Ss 0:25 Xvnc :42 -inetd -once -query localhost -geometry 1024x768 -depth 16
4388 ? S 0:00 -Server.Workgroup:
4405 ? S 0:03 /usr/X11R6/bin/fvwm2
4433 ? S 0:00 /usr/X11R6/lib/X11/fvwm2/FvwmTheme 9 5 /etc/X11/fvwm2/system.fvwm2rc 0 8
4447 ? S 0:01 xterm -ls -geometry +150+85
4448 ? S 0:00 /usr/X11R6/lib/X11/fvwm2/FvwmButtons 13 4 none 0 8
4451 ? S 0:00 xeyes -name FvwmXeyes -geometry +0+0 -bg grey67
4454 ? S 0:00 xclock -name FvwmXclock -geometry +0+0 -padding 1 -bg rgb:91/ae/d6
4455 pts/0 Ss 0:00 -bash
4464 ? S 0:00 /usr/X11R6/lib/X11/fvwm2/FvwmPager 15 4 none 0 8 0 0
4624 pts/0 R+ 0:00 ps -ax
# # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/yast.schema include /etc/openldap/schema/samba3.schema
# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org pidfile
/var/run/slapd/slapd.pid argsfile
/var/run/slapd/slapd.args
# Load dynamic backend modules:
# modulepath /usr/lib/openldap/modules
# moduleload back_ldap.la
# moduleload back_meta.la
# moduleload back_monitor.la
# moduleload back_perl.la
# Sample security restrictions
# Require integrity protection (prevent hijacking)
# Require 112-bit (3DES or better) encryption for updates
# Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64
# Sample access control policy:
# Root DSE: allow anyone to read it
# Subschema (sub)entry DSE: allow anyone to read it
# Other DSEs:
# Allow self write access to user password
# Allow anonymous users to authenticate
# Allow read access to everything else
# Directives needed to implement policy:
access to dn="ou=User,dc=Richter,dc=Home" attrs=userPassword,sambaLMPassword,sambaNTPassword
by self write by * auth
access to dn="ou=Group,dc=Richter,dc=Home" attrs=memberUid
by dn="ou=User,dc=Richter,dc=Home" write access to attrs=userPassword
by self write by * auth
access to attrs=shadowLastChange
by self write by * read access to * by users
read by * none
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn. (e.g., "access to * by * read")
# # rootdn can always read and write EVERYTHING! ################################################## ##################### # BDB database definitions ################################################## ##################### database bdb
suffix "dc=Richter,dc=Home"
checkpoint 1024 5
cachesize 10000
rootdn "cn=Manager,dc=Richter,dc=Home"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/lib/ldap
# Indices to maintain
index objectClass eq
index uid pres,eq
index sambaSID eq
index uidNumber eq
index gidNumber eq
index cn eq
index memberUid eq
home.ldif
dn: dc=Richter,dc=Home
objectClass: organization
objectClass: dcObject
o: RichtersHome
dn: Richter
dn: ou=User,dc=Richter,dc=Home
objectClass: organizationalUnit
objectClass: top ou: User
dn: ou=Group,dc=Richter,dc=Home
objectClass: organizationalUnit
objectClass: top ou: Group
dn: ou=nss,dc=Richter,dc=Home
objectClass: organizationalUnit
objectClass: top ou:
nss userpassword: secret
kommando:
ldapadd -x -D "cn=Manager,dc=Richter,dc=Home" -W home.ldif
Ich hoffe das sagt euch mehr als mir....
Hm, das sieht soweit eigentlich alles vorschriftsmäßig aus; das nächste Mal setze bitte solche Monster-Texte in code-Tags (http://www.linuxforen.de/forums/misc.php?do=bbcode), das macht sie besser lesbar.
Ich würde den Fehler mal so interpretieren, dass der ldap nicht erreichbar ist; was sagt "netstat --tcp --listen -n"? Da sollte unter anderem sowas stehen:
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN
Ja werde ich machen und genau das steht dort auch sogar an erster stelle ...
könnte mir vll ma jemand weiterhelfen, da ich absolut ratlos bin....wär echt nett
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.