PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : LDAP + ProFTP



rupe
24.10.06, 09:52
Hallo, Leute!

Ich hab da ein Problem ich hab einen Ldap-Server aufgesetzt. Ich will jetzt das sich die FTP-User mit LDAP authentifizieren müssen.

wenn ich mich nun testweise per FTP auf den Server connecten will bekomme ich in der proftp.log folgende Meldung:



error setting IPV6_V6ONLY: Protocol not available
FTP session opened.
mod_delay/0.5: delaying for 19432 usecs
no such user 'kurt'
USER kurt: no such user found from localhost.localdomain [::ffff:127.0.0.1] to ::ffff:127.0.0.1:21
mod_delay/0.5: delaying for 34274 usecs
FTP session closed.


und wenn ich den FTP-Server neu starte kommt da:


ProFTPD killed (signal 15)
ProFTPD 1.3.0 standalone mode SHUTDOWN
error setting IPV6_V6ONLY: Protocol not available
ProFTPD 1.3.0 (stable) (built vr sep 29 19:06:39 UTC 2006) standalone mode STARTUP



Hier noch ein login mit einen lokalen (nicht ldap) user:


error setting IPV6_V6ONLY: Protocol not available
FTP session opened.
mod_ldap: pr_ldap_connect(): ldap_simple_bind() as cn=admin,dc=localhost failed: Server is unwilling to perform
mod_ldap: pr_ldap_user_lookup(): ldap_search_st() failed: Timed out
USER juergen: Login successful.
mod_ldap: pr_ldap_user_lookup(): ldap_search_st() failed: Timed out
Preparing to chroot to directory '/home/juergen'
FTP session closed.



Hier noch ein auszug meiner Syslog,
beim debug mode von ldap und den
versuch sich über ftp einzuloggen!



connection_get(15): got connid=47
connection_read(15): checking for input on id=47
ber_get_next on fd 15 failed errno=11 (Resource temporarily unavailable)
do_search
>>> dnPrettyNormal: <ou=People,dc=developer,dc=forum,dc=at>
<<< dnPrettyNormal: <ou=People,dc=developer,dc=forum,dc=at>, <ou=people,dc=developer,dc=forum,dc=at>
SRCH "ou=People,dc=developer,dc=forum,dc=at" 1 0
1 0 0
filter: (&(objectClass=posixAccount)(uid=kurt))
attrs:
uid
userPassword
uidNumber
gidNumber
cn
homeDirectory
loginShell
gecos
description
objectClass
Oct 24 15:25:28 developer slapd[25232]:
==> limits_get: conn=47 op=2 dn="[anonymous]"
=> bdb_search
bdb_dn2entry("ou=people,dc=developer,dc=forum,dc=at")
search_candidates: base="ou=people,dc=developer,dc=forum,dc=at" (0x0000004b) scope=1
=> bdb_dn2idl("ou=people,dc=developer,dc=forum,dc=at")
bdb_idl_fetch_key: %ou=people,dc=developer,dc=forum,dc=at
<= bdb_dn2idl: id=2 first=76 last=79
=> bdb_equality_candidates (objectClass)
=> key_read
bdb_idl_fetch_key: [b49d1940]
<= bdb_index_read: failed (-30990)
<= bdb_equality_candidates: id=0, first=0, last=0
=> bdb_equality_candidates (objectClass)
=> key_read
bdb_idl_fetch_key: [5941c014]
<= bdb_index_read 3 candidates
<= bdb_equality_candidates: id=3, first=76, last=83
=> bdb_equality_candidates (uid)
<= bdb_equality_candidates: (uid) index_param failed (18)
bdb_search_candidates: id=2 first=76 last=79
bdb_search: 76 does not match filter
bdb_search: 79 does not match filter
send_ldap_result: conn=47 op=2 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=3 tag=101 err=0
connection_get(16)
connection_get(16): got connid=48
connection_read(16): checking for input on id=48
ber_get_next on fd 16 failed errno=11 (Resource temporarily unavailable)
do_bind
>>> dnPrettyNormal: <cn=proftp,dc=developer,dc=forum,dc=at>
<<< dnPrettyNormal: <cn=proftp,dc=developer,dc=forum,dc=at>, <cn=proftp,dc=developer,dc=forum,dc=at>
do_bind: version=3 dn="cn=proftp,dc=developer,dc=forum,dc=at" method=128
==> bdb_bind: dn: cn=proftp,dc=developer,dc=forum,dc=at
bdb_dn2entry("cn=proftp,dc=developer,dc=forum,dc=at")
send_ldap_result: conn=48 op=0 p=3
send_ldap_result: err=49 matched="" text=""
send_ldap_response: msgid=1 tag=97 err=49
connection_get(15)
connection_get(15): got connid=47
connection_read(15): checking for input on id=47
ber_get_next on fd 15 failed errno=11 (Resource temporarily unavailable)
do_search
>>> dnPrettyNormal: <ou=People,dc=developer,dc=forum,dc=at>
<<< dnPrettyNormal: <ou=People,dc=developer,dc=forum,dc=at>, <ou=people,dc=developer,dc=forum,dc=at>
SRCH "ou=People,dc=developer,dc=forum,dc=at" 1 0
1 0 0
filter: (&(objectClass=posixAccount)(uid=kurt))
attrs:
uid
userPassword
uidNumber
gidNumber
cn
homeDirectory
loginShell
gecos
description
objectClass
Oct 24 15:25:28 developer slapd[25232]:
==> limits_get: conn=47 op=3 dn="[anonymous]"
=> bdb_search
bdb_dn2entry("ou=people,dc=developer,dc=forum,dc=at")
search_candidates: base="ou=people,dc=developer,dc=forum,dc=at" (0x0000004b) scope=1
=> bdb_dn2idl("ou=people,dc=developer,dc=forum,dc=at")
bdb_idl_fetch_key: %ou=people,dc=developer,dc=forum,dc=at
<= bdb_dn2idl: id=2 first=76 last=79
=> bdb_equality_candidates (objectClass)
=> key_read
bdb_idl_fetch_key: [b49d1940]
<= bdb_index_read: failed (-30990)
<= bdb_equality_candidates: id=0, first=0, last=0
=> bdb_equality_candidates (objectClass)
=> key_read
bdb_idl_fetch_key: [5941c014]
<= bdb_index_read 3 candidates
<= bdb_equality_candidates: id=3, first=76, last=83
=> bdb_equality_candidates (uid)
<= bdb_equality_candidates: (uid) index_param failed (18)
bdb_search_candidates: id=2 first=76 last=79
bdb_search: 76 does not match filter
bdb_search: 79 does not match filter
send_ldap_result: conn=47 op=3 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=4 tag=101 err=0
connection_get(11)
connection_get(11): got connid=41
connection_read(11): checking for input on id=41
ber_get_next on fd 11 failed errno=0 (Success)
connection_read(11): input error=-2 id=41, closing.
connection_closing: readying conn=41 sd=11 for close
connection_close: conn=41 sd=11
connection_get(14)
connection_get(14): got connid=43
connection_read(14): checking for input on id=43
ber_get_next on fd 14 failed errno=0 (Success)
connection_read(14): input error=-2 id=43, closing.
connection_closing: readying conn=43 sd=14 for close
connection_close: conn=43 sd=14
connection_get(13)
connection_get(13): got connid=42
connection_read(13): checking for input on id=42
ber_get_next on fd 13 failed errno=0 (Success)
connection_read(13): input error=-2 id=42, closing.
connection_closing: readying conn=42 sd=13 for close
connection_close: conn=42 sd=13

Bitte hilfe!