From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 From: =?utf-8?b?0JLQu9Cw0LTQuNC80LjRgA==?= To: ALT Linux sysadmin discuss Date: Sun, 23 Dec 2007 19:33:19 +0300 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200712231933.19415.haw@inbox.ru> Subject: [Sysadmins] LDAP X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2007 16:33:21 -0000 Archived-At: List-Archive: что-то я с ним замучился... логи -1 установлены, но что-то не видно что бы он их писал... slapcat выводит dn: uid=masha,ou=People,dc=firma,dc=lan uid: masha cn: Masha objectClass: account objectClass: posixAccount objectClass: top objectClass: shadowAccount userPassword:: e2NyeXB0fSQxJHpYcGdiL3BYJHZGdC56d251VkRCUG5OVy94eUZBeC8= shadowLastChange: 13657 shadowMax: 99999 loginShell: /bin/bash uidNumber: 517 gidNumber: 501 homeDirectory: /home/masha structuralObjectClass: account entryUUID: 352546a8-4405-102c-89c2-0929f9fb3173 creatorsName: cn=admin,dc=firma,dc=lan createTimestamp: 20071221114000Z entryCSN: 20071221114000Z#00000e#00#000000 modifiersName: cn=admin,dc=firma,dc=lan modifyTimestamp: 20071221114000Z # ldapsearch -LL -H ldap://localhost -b"dc=poseydon,dc=lan" -x "(gidNumber=507)" version: 1 и всё. А тут вобще не понятно... # ldapsearch -x -H 'ldap://localhost/' -d -1 ldap_create ldap_url_parse_ext(ldap://localhost/) 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 localhost: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=0x0805f718 ptr=0x0805f718 end=0x0805f726 len=14 0000: 30 0c 02 01 01 60 07 02 01 03 04 00 80 00 0....`........ ber_scanf fmt ({i) ber: ber_dump: buf=0x0805f718 ptr=0x0805f71d end=0x0805f726 len=9 0000: 60 07 02 01 03 04 00 80 00 `........ ber_flush: 14 bytes to sd 4 0000: 30 0c 02 01 01 60 07 02 01 03 04 00 80 00 0....`........ ldap_write: want=14, written=14 0000: 30 0c 02 01 01 60 07 02 01 03 04 00 80 00 0....`........ ldap_result ld 0x8057528 msgid 1 ldap_chkResponseList ld 0x8057528 msgid 1 all 1 ldap_chkResponseList returns ld 0x8057528 NULL wait4msg ld 0x8057528 msgid 1 (infinite timeout) wait4msg continue ld 0x8057528 msgid 1 all 1 ** ld 0x8057528 Connections: * host: localhost port: 389 (default) refcnt: 2 status: Connected last used: Sun Dec 23 19:48:20 2007 ** ld 0x8057528 Outstanding Requests: * msgid 1, origid 1, status InProgress outstanding referrals 0, parent count 0 ** ld 0x8057528 Response Queue: Empty ldap_chkResponseList ld 0x8057528 msgid 1 all 1 ldap_chkResponseList returns ld 0x8057528 NULL ldap_int_select read1msg: ld 0x8057528 msgid 1 all 1 ber_get_next ldap_read: want=8, got=8 0000: 30 0c 02 01 01 61 07 0a 0....a.. ldap_read: want=6, got=6 0000: 01 00 04 00 04 00 ...... ber_get_next: tag 0x30 len 12 contents: ber_dump: buf=0x08060890 ptr=0x08060890 end=0x0806089c len=12 0000: 02 01 01 61 07 0a 01 00 04 00 04 00 ...a........ read1msg: ld 0x8057528 msgid 1 message type bind ber_scanf fmt ({eaa) ber: ber_dump: buf=0x08060890 ptr=0x08060893 end=0x0806089c len=9 0000: 61 07 0a 01 00 04 00 04 00 a........ read1msg: ld 0x8057528 0 new referrals read1msg: mark request completed, ld 0x8057528 msgid 1 request done: ld 0x8057528 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=0x08060890 ptr=0x08060893 end=0x0806089c len=9 0000: 61 07 0a 01 00 04 00 04 00 a........ ber_scanf fmt (}) ber: ber_dump: buf=0x08060890 ptr=0x0806089c end=0x0806089c 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_build_search_req ATTRS: * ldap_send_initial_request ldap_send_server_request ber_scanf fmt ({it) ber: ber_dump: buf=0x0805f718 ptr=0x0805f718 end=0x0805f751 len=57 0000: 30 37 02 01 02 63 32 04 12 64 63 3d 70 6f 73 65 07...c2..dc=pose 0010: 79 64 6f 6e 2c 64 63 3d 6c 61 6e 0a 01 02 0a 01 ydon,dc=lan..... 0020: 00 02 01 00 02 01 00 01 01 00 87 0b 6f 62 6a 65 ............obje 0030: 63 74 63 6c 61 73 73 30 00 ctclass0. ber_scanf fmt ({) ber: ber_dump: buf=0x0805f718 ptr=0x0805f71d end=0x0805f751 len=52 0000: 63 32 04 12 64 63 3d 70 6f 73 65 79 64 6f 6e 2c c2..dc=firma, 0010: 64 63 3d 6c 61 6e 0a 01 02 0a 01 00 02 01 00 02 dc=lan.......... 0020: 01 00 01 01 00 87 0b 6f 62 6a 65 63 74 63 6c 61 .......objectcla 0030: 73 73 30 00 ss0. ber_flush: 57 bytes to sd 4 0000: 30 37 02 01 02 63 32 04 12 64 63 3d 70 6f 73 65 07...c2..dc=pose 0010: 79 64 6f 6e 2c 64 63 3d 6c 61 6e 0a 01 02 0a 01 ydon,dc=lan..... 0020: 00 02 01 00 02 01 00 01 01 00 87 0b 6f 62 6a 65 ............obje 0030: 63 74 63 6c 61 73 73 30 00 ctclass0. ldap_write: want=57, written=57 0000: 30 37 02 01 02 63 32 04 12 64 63 3d 70 6f 73 65 07...c2..dc=pose 0010: 79 64 6f 6e 2c 64 63 3d 6c 61 6e 0a 01 02 0a 01 ydon,dc=lan..... 0020: 00 02 01 00 02 01 00 01 01 00 87 0b 6f 62 6a 65 ............obje 0030: 63 74 63 6c 61 73 73 30 00 ctclass0. ldap_result ld 0x8057528 msgid -1 ldap_chkResponseList ld 0x8057528 msgid -1 all 0 ldap_chkResponseList returns ld 0x8057528 NULL wait4msg ld 0x8057528 msgid -1 (infinite timeout) wait4msg continue ld 0x8057528 msgid -1 all 0 ** ld 0x8057528 Connections: * host: localhost port: 389 (default) refcnt: 2 status: Connected last used: Sun Dec 23 19:48:20 2007 ** ld 0x8057528 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x8057528 Response Queue: Empty ldap_chkResponseList ld 0x8057528 msgid -1 all 0 ldap_chkResponseList returns ld 0x8057528 NULL ldap_int_select read1msg: ld 0x8057528 msgid -1 all 0 ber_get_next ldap_read: want=8, got=8 0000: 30 0c 02 01 02 65 07 0a 0....e.. ldap_read: want=6, got=6 0000: 01 00 04 00 04 00 ...... ber_get_next: tag 0x30 len 12 contents: ber_dump: buf=0x08060890 ptr=0x08060890 end=0x0806089c len=12 0000: 02 01 02 65 07 0a 01 00 04 00 04 00 ...e........ read1msg: ld 0x8057528 msgid 2 message type search-result ber_scanf fmt ({eaa) ber: ber_dump: buf=0x08060890 ptr=0x08060893 end=0x0806089c len=9 0000: 65 07 0a 01 00 04 00 04 00 e........ read1msg: ld 0x8057528 0 new referrals read1msg: mark request completed, ld 0x8057528 msgid 2 request done: ld 0x8057528 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=0x08060890 ptr=0x08060893 end=0x0806089c len=9 0000: 65 07 0a 01 00 04 00 04 00 e........ ber_scanf fmt (}) ber: ber_dump: buf=0x08060890 ptr=0x0806089c end=0x0806089c len=0 ldap_err2string result: 0 Success ldap_msgfree # numResponses: 1 ldap_free_connection 1 1 ldap_send_unbind ber_flush: 7 bytes to sd 4 0000: 30 05 02 01 03 42 00 0....B. ldap_write: want=7, written=7 0000: 30 05 02 01 03 42 00 0....B. ldap_free_connection: actually freed