Наткнулся на проблему ...
На Debianе есть сервер DHCP пропадченый под LDAP, лдап работает без проблем заходит клиентом и т.д.
А когда запускаю DHCP - вот:
netup:/etc# /usr/sbin/dhcpd3
Internet Systems Consortium DHCP Server V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Error: Cannot login into ldap server localhost:389: Invalid credentials
Configuration file errors encountered -- exitingВот dhcpd.conf
#
# DHCP Server Configuration
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ldap-server "localhost";
ldap-port 389;
ldap-username "cn=resman,ou=ressources,dc=netup,dc=grin,dc=by";
ldap-password "{SSHA}LmgvcZP7zlKZTc5Xj52KDwpeiIyW+iNi";
ldap-base-dn "ou=DHCP,ou=ressources,dc=netup,dc=grin,dc=by";
ldap-method dynamic;
# ldap-method static;
ddns-update-style ad-hoc;
ldap-debug-file "/var/log/dhcp-ldap-startup.log";
Хотя делаю ldapsearch -D "cn=resman, ou=ressources, dc=netup, dc=grin, dc=by" -W -x -d 25
и всё гуд
netup:/etc# ldapsearch -D "cn=resman, ou=ressources, dc=netup, dc=grin, dc=by" -W -x -d 25
ldap_create
Enter LDAP Password:
ldap_bind
ldap_simple_bind
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP 127.0.0.1:389
ldap_new_socket: 4
ldap_prepare_socket: 4
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_connect_timeout: fd: 4 tm: -1 async: 0
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_dump: buf=0x0805ff78 ptr=0x0805ff78 end=0x0805ffc0 len=72
0000: 30 46 02 01 01 60 41 02 01 03 04 32 63 6e 3d 72 0F...`A....2cn=r
0010: 65 73 6d 61 6e 2c 20 6f 75 3d 72 65 73 73 6f 75 esman, ou=ressou
0020: 72 63 65 73 2c 20 64 63 3d 6e 65 74 75 70 2c 20 rces, dc=netup,
0030: 64 63 3d 67 72 69 6e 2c 20 64 63 3d 62 79 80 08 dc=grin, dc=by..
0040: 50 61 24 24 77 30 72 64 Pa$$w0rd
ber_scanf fmt ({i) ber:
ber_dump: buf=0x0805ff78 ptr=0x0805ff7d end=0x0805ffc0 len=67
0000: 60 41 02 01 03 04 32 63 6e 3d 72 65 73 6d 61 6e `A....2cn=resman
0010: 2c 20 6f 75 3d 72 65 73 73 6f 75 72 63 65 73 2c , ou=ressources,
0020: 20 64 63 3d 6e 65 74 75 70 2c 20 64 63 3d 67 72 dc=netup, dc=gr
0030: 69 6e 2c 20 64 63 3d 62 79 80 08 50 61 24 24 77 in, dc=by..Pa$$w
0040: 30 72 64 0rd
ber_flush: 72 bytes to sd 4
ldap_result ld 0x8057d40 msgid 1
ldap_chkResponseList ld 0x8057d40 msgid 1 all 1
ldap_chkResponseList returns ld 0x8057d40 NULL
wait4msg ld 0x8057d40 msgid 1 (infinite timeout)
wait4msg continue ld 0x8057d40 msgid 1 all 1
** ld 0x8057d40 Connections:
* host: 127.0.0.1 port: 389 (default)
refcnt: 2 status: Connected
last used: Tue Jan 15 19:05:25 2008
** ld 0x8057d40 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
** ld 0x8057d40 Response Queue:
Empty
ldap_chkResponseList ld 0x8057d40 msgid 1 all 1
ldap_chkResponseList returns ld 0x8057d40 NULL
ldap_int_select
read1msg: ld 0x8057d40 msgid 1 all 1
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x08061108 ptr=0x08061108 end=0x08061114 len=12
0000: 02 01 01 61 07 0a 01 00 04 00 04 00 ...a........
read1msg: ld 0x8057d40 msgid 1 message type bind
ber_scanf fmt ({eaa) ber:
ber_dump: buf=0x08061108 ptr=0x0806110b end=0x08061114 len=9
0000: 61 07 0a 01 00 04 00 04 00 a........
read1msg: ld 0x8057d40 0 new referrals
read1msg: mark request completed, ld 0x8057d40 msgid 1
request done: ld 0x8057d40 msgid 1
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection 0 1
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x08061108 ptr=0x0806110b end=0x08061114 len=9
0000: 61 07 0a 01 00 04 00 04 00 a........
ber_scanf fmt (}) ber:
ber_dump: buf=0x08061108 ptr=0x08061114 end=0x08061114 len=0
ldap_msgfree
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
ldap_search_ext
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
ldap_send_initial_request
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_dump: buf=0x0805ff78 ptr=0x0805ff78 end=0x0805ffbe len=70
0000: 30 44 02 01 02 63 3f 04 1f 6f 75 3d 75 73 65 72 0D...c?..ou=user
0010: 73 2c 64 63 3d 6e 65 74 75 70 2c 64 63 3d 67 72 s,dc=netup,dc=gr
0020: 69 6e 2c 64 63 3d 62 79 0a 01 02 0a 01 00 02 01 in,dc=by........
0030: 00 02 01 00 01 01 00 87 0b 6f 62 6a 65 63 74 63 .........objectc
0040: 6c 61 73 73 30 00 lass0.
ber_scanf fmt ({) ber:
ber_dump: buf=0x0805ff78 ptr=0x0805ff7d end=0x0805ffbe len=65
0000: 63 3f 04 1f 6f 75 3d 75 73 65 72 73 2c 64 63 3d c?..ou=users,dc=
0010: 6e 65 74 75 70 2c 64 63 3d 67 72 69 6e 2c 64 63 netup,dc=grin,dc
0020: 3d 62 79 0a 01 02 0a 01 00 02 01 00 02 01 00 01 =by.............
0030: 01 00 87 0b 6f 62 6a 65 63 74 63 6c 61 73 73 30 ....objectclass0
0040: 00 .
ber_flush: 70 bytes to sd 4
ldap_result ld 0x8057d40 msgid -1
ldap_chkResponseList ld 0x8057d40 msgid -1 all 0
ldap_chkResponseList returns ld 0x8057d40 NULL
wait4msg ld 0x8057d40 msgid -1 (infinite timeout)
wait4msg continue ld 0x8057d40 msgid -1 all 0
** ld 0x8057d40 Connections:
* host: 127.0.0.1 port: 389 (default)
refcnt: 2 status: Connected
last used: Tue Jan 15 19:05:25 2008
** ld 0x8057d40 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
** ld 0x8057d40 Response Queue:
Empty
ldap_chkResponseList ld 0x8057d40 msgid -1 all 0
ldap_chkResponseList returns ld 0x8057d40 NULL
ldap_int_select
read1msg: ld 0x8057d40 msgid -1 all 0
ber_get_next
ber_get_next: tag 0x30 len 34 contents:
ber_dump: buf=0x080611e8 ptr=0x080611e8 end=0x0806120a len=34
0000: 02 01 02 65 1d 0a 01 20 04 16 64 63 3d 6e 65 74 ...e... ..dc=net
0010: 75 70 2c 64 63 3d 67 72 69 6e 2c 64 63 3d 62 79 up,dc=grin,dc=by
0020: 04 00 ..
read1msg: ld 0x8057d40 msgid 2 message type search-result
ber_scanf fmt ({eaa) ber:
ber_dump: buf=0x080611e8 ptr=0x080611eb end=0x0806120a len=31
0000: 65 1d 0a 01 20 04 16 64 63 3d 6e 65 74 75 70 2c e... ..dc=netup,
0010: 64 63 3d 67 72 69 6e 2c 64 63 3d 62 79 04 00 dc=grin,dc=by..
read1msg: ld 0x8057d40 0 new referrals
read1msg: mark request completed, ld 0x8057d40 msgid 2
request done: ld 0x8057d40 msgid 2
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)
ldap_free_connection 0 1
ldap_free_connection: refcnt 1
# search result
search: 2
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x080611e8 ptr=0x080611eb end=0x0806120a len=31
0000: 65 1d 0a 01 20 04 16 64 63 3d 6e 65 74 75 70 2c e... ..dc=netup,
0010: 64 63 3d 67 72 69 6e 2c 64 63 3d 62 79 04 00 dc=grin,dc=by..
ber_scanf fmt (}) ber:
ber_dump: buf=0x080611e8 ptr=0x0806120a end=0x0806120a len=0
ldap_err2string
result: 32 No such object
matchedDN: dc=netup,dc=grin,dc=by
ldap_msgfree
# numResponses: 1
ldap_free_connection 1 1
ldap_send_unbind
ber_flush: 7 bytes to sd 4
ldap_free_connection: actually freed
Подскажите вчём проблема ... уже всё попробовал (