Michael Ströder wrote: > This patch seems to work (already installed at your site ;-). > > Ciao, Michael. > > Index: Modules/ldapcontrol.c > =================================================================== > RCS file: /cvsroot/python-ldap/python-ldap/Modules/ldapcontrol.c,v > retrieving revision 1.10 > diff -u -r1.10 ldapcontrol.c > --- Modules/ldapcontrol.c 16 Mar 2009 14:54:55 -0000 1.10 > +++ Modules/ldapcontrol.c 16 Mar 2009 17:29:04 -0000 > @@ -300,11 +300,13 @@ > ber_tag_t tag; > struct berval *cookiep; > unsigned long count; > + Py_ssize_t ldctl_value_len; > > if (!PyArg_ParseTuple(args, "s#:decode_page_control", > &ldctl_value.bv_val, &ldctl_value.bv_len)) { > goto endlbl; > } > + ldctl_value.bv_len = (ber_len_t) ldctl_value_len; > > if (!(ber = ber_init(&ldctl_value))) { > LDAPerr(LDAP_NO_MEMORY); > > >
hi, Michael. I found another problem. Below code works: >>> import ldap >>> from ldap.controls import SimplePagedResultsControl >>> SimplePagedResultsControl(ldap.LDAP_CONTROL_PAGE_OID,True,(10,'')).getEncodedTuple() ('1.2.840.113556.1.4.319', True, '0\x05\x02\x01\n\x04\x00') >>> But Demo/page_control.py doesn't work, it raises ldap.NO_MEMORY sometimes, and 'Segmentation fault' too. ---- # python 1.py ldap_create ldap_url_parse_ext(ldap://r6:389/) *** ldap://r6:389/ - SimpleLDAPObject.set_option ((17, 3),{}) *** ldap://r6:389/ - SimpleLDAPObject.set_option ((17, 3),{}) *** ldap://r6:389/ - SimpleLDAPObject.simple_bind (('cn=Manager,dc=iredmail,dc=org', 'passwd', None, None),{}) ldap_sasl_bind ldap_send_initial_request ldap_new_connection 1 1 0 ldap_int_open_connection ldap_connect_to_host: TCP r6:389 ldap_new_socket: 3 ldap_prepare_socket: 3 ldap_connect_to_host: Trying 192.168.122.6:389 ldap_connect_timeout: fd: 3 tm: -1 async: 0 ldap_open_defconn: successful ldap_send_server_request => result: 1 *** ldap://r6:389/ - SimpleLDAPObject.result3 ((1, 1, -1),{}) ldap_result ld 0xb1cd7d0 msgid 1 ldap_chkResponseList ld 0xb1cd7d0 msgid 1 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL wait4msg ld 0xb1cd7d0 msgid 1 (infinite timeout) wait4msg continue ld 0xb1cd7d0 msgid 1 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 1, origid 1, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: Empty ldap_chkResponseList ld 0xb1cd7d0 msgid 1 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 1 all 1 read1msg: ld 0xb1cd7d0 msgid 1 message type bind read1msg: ld 0xb1cd7d0 0 new referrals read1msg: mark request completed, ld 0xb1cd7d0 msgid 1 request done: ld 0xb1cd7d0 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 ldap_msgfree => result: (97, [], 1, []) *** ldap://r6:389/ - SimpleLDAPObject.search_ext (('domainName=b.cn,o=domains,dc=iredmail,dc=org', 2, '(objectClass=mailUser)', None, 0, [('1.2.840.113556.1.4.319', True, '0\x05\x02\x01\n\x04\x00')], None, -1, 0),{}) ldap_search_ext put_filter: "(objectClass=mailUser)" put_filter: simple put_simple_filter: "objectClass=mailUser" ldap_build_search_req ATTRS: * ldap_send_initial_request ldap_send_server_request => result: 2 Getting page 1 *** ldap://r6:389/ - SimpleLDAPObject.result3 ((2, 1, -1),{}) ldap_result ld 0xb1cd7d0 msgid 2 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL wait4msg ld 0xb1cd7d0 msgid 2 (infinite timeout) wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: Empty ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry adding response ld 0xb1cd7d0 msgid 2 type 100: wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry adding response ld 0xb1cd7d0 msgid 2 type 100: wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry adding response ld 0xb1cd7d0 msgid 2 type 100: wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry adding response ld 0xb1cd7d0 msgid 2 type 100: wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry adding response ld 0xb1cd7d0 msgid 2 type 100: wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry adding response ld 0xb1cd7d0 msgid 2 type 100: wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry adding response ld 0xb1cd7d0 msgid 2 type 100: wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry adding response ld 0xb1cd7d0 msgid 2 type 100: wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-entry adding response ld 0xb1cd7d0 msgid 2 type 100: wait4msg continue ld 0xb1cd7d0 msgid 2 all 1 ** ld 0xb1cd7d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:34:51 2009 ** ld 0xb1cd7d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0xb1cd7d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0xb1cd7d0 msgid 2 all 1 ldap_chkResponseList returns ld 0xb1cd7d0 NULL ldap_int_select read1msg: ld 0xb1cd7d0 msgid 2 all 1 read1msg: ld 0xb1cd7d0 msgid 2 message type search-result read1msg: ld 0xb1cd7d0 0 new referrals read1msg: mark request completed, ld 0xb1cd7d0 msgid 2 request done: ld 0xb1cd7d0 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 adding response ld 0xb1cd7d0 msgid 2 type 101: ldap_parse_result ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_msgfree => result: (101, [('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['1'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}xMpCOKC5I4INzFCab3WEmw=='], 'accountStatus': ['active'], 'sn': ['1'], 'homeDirectory': ['/home/vmail'], 'mail': ['1...@b.cn'], 'mailMessageStore': ['b.cn/1/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['1']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['2'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}yB5yjZ1ML2NvBn+JzBSGLA=='], 'accountStatus': ['active'], 'sn': ['2'], 'homeDirectory': ['/home/vmail'], 'mail': ['2...@b.cn'], 'mailMessageStore': ['b.cn/2/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['2']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['3'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}7MvIfktc4v4oMI/Z8qe68w=='], 'accountStatus': ['active'], 'sn': ['3'], 'homeDirectory': ['/home/vmail'], 'mail': ['3...@b.cn'], 'mailMessageStore': ['b.cn/3/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['3']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['4'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}qH/2eaLz5x2RgaZ7dUISLA=='], 'accountStatus': ['active'], 'sn': ['4'], 'homeDirectory': ['/home/vmail'], 'mail': ['4...@b.cn'], 'mailMessageStore': ['b.cn/4/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['4']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['5'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}5No7f7vOI0XXdysGdKMY1Q=='], 'accountStatus': ['active'], 'sn': ['5'], 'homeDirectory': ['/home/vmail'], 'mail': ['5...@b.cn'], 'mailMessageStore': ['b.cn/5/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['5']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['6'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}FnkJHFqID69vteYIfrGy3A=='], 'accountStatus': ['active'], 'sn': ['6'], 'homeDirectory': ['/home/vmail'], 'mail': ['6...@b.cn'], 'mailMessageStore': ['b.cn/6/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['6']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['7'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}jxTkX87qFnpaNt7dS+olQw=='], 'accountStatus': ['active'], 'sn': ['7'], 'homeDirectory': ['/home/vmail'], 'mail': ['7...@b.cn'], 'mailMessageStore': ['b.cn/7/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['7']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['8'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}yfD4lfuYq5FZ9R/QKX4jbQ=='], 'accountStatus': ['active'], 'sn': ['8'], 'homeDirectory': ['/home/vmail'], 'mail': ['8...@b.cn'], 'mailMessageStore': ['b.cn/8/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['8']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['9'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}RcSMzi4tf73qGvxRx8atJg=='], 'accountStatus': ['active'], 'sn': ['9'], 'homeDirectory': ['/home/vmail'], 'mail': ['9...@b.cn'], 'mailMessageStore': ['b.cn/9/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['9']}), ('mail...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['10'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}09lEaAKkQll1XTjm0WPoIA=='], 'accountStatus': ['active'], 'sn': ['10'], 'homeDirectory': ['/home/vmail'], 'mail': ['1...@b.cn'], 'mailMessageStore': ['b.cn/10/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['10']})], 2, [('1.2.840.113556.1.4.319', 0, '0\r\x02\x01\x00\x04\x08.\x02\x00\x00\x00\x00\x00\x00')]) Traceback (most recent call last): File "1.py", line 32, in ? rtype, rdata, rmsgid, serverctrls = l.result3(msgid) File "/usr/lib64/python2.4/site-packages/python_ldap-2.3.6-py2.4-linux-x86_64.egg/ldap/ldapobject.py", line 443, in result3 decoded_serverctrls = DecodeControlTuples(serverctrls) File "/usr/lib64/python2.4/site-packages/python_ldap-2.3.6-py2.4-linux-x86_64.egg/ldap/controls.py", line 122, in DecodeControlTuples return [ File "/usr/lib64/python2.4/site-packages/python_ldap-2.3.6-py2.4-linux-x86_64.egg/ldap/controls.py", line 74, in __init__ LDAPControl.__init__(self,ldap.LDAP_CONTROL_PAGE_OID,criticality,controlValue,encodedControlValue) File "/usr/lib64/python2.4/site-packages/python_ldap-2.3.6-py2.4-linux-x86_64.egg/ldap/controls.py", line 33, in __init__ self.controlValue = controlValue or self.decodeControlValue(encodedControlValue) File "/usr/lib64/python2.4/site-packages/python_ldap-2.3.6-py2.4-linux-x86_64.egg/ldap/controls.py", line 81, in decodeControlValue size,cookie = _ldap.decode_page_control(encodedValue) ldap.NO_MEMORY ldap_free_connection 1 1 ldap_send_unbind ldap_free_connection: actually freed ---- ---- # python 1.py ldap_create ldap_url_parse_ext(ldap://r6:389/) *** ldap://r6:389/ - SimpleLDAPObject.set_option ((17, 3),{}) *** ldap://r6:389/ - SimpleLDAPObject.set_option ((17, 3),{}) *** ldap://r6:389/ - SimpleLDAPObject.simple_bind (('cn=Manager,dc=iredmail,dc=org', 'passwd', None, None),{}) ldap_sasl_bind ldap_send_initial_request ldap_new_connection 1 1 0 ldap_int_open_connection ldap_connect_to_host: TCP r6:389 ldap_new_socket: 3 ldap_prepare_socket: 3 ldap_connect_to_host: Trying 192.168.122.6:389 ldap_connect_timeout: fd: 3 tm: -1 async: 0 ldap_open_defconn: successful ldap_send_server_request => result: 1 *** ldap://r6:389/ - SimpleLDAPObject.result3 ((1, 1, -1),{}) ldap_result ld 0x11df67d0 msgid 1 ldap_chkResponseList ld 0x11df67d0 msgid 1 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL wait4msg ld 0x11df67d0 msgid 1 (infinite timeout) wait4msg continue ld 0x11df67d0 msgid 1 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 1, origid 1, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: Empty ldap_chkResponseList ld 0x11df67d0 msgid 1 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 1 all 1 read1msg: ld 0x11df67d0 msgid 1 message type bind read1msg: ld 0x11df67d0 0 new referrals read1msg: mark request completed, ld 0x11df67d0 msgid 1 request done: ld 0x11df67d0 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 ldap_msgfree => result: (97, [], 1, []) *** ldap://r6:389/ - SimpleLDAPObject.search_ext (('domainName=b.cn,o=domains,dc=iredmail,dc=org', 2, '(objectClass=mailUser)', None, 0, [('1.2.840.113556.1.4.319', True, '0\x05\x02\x01\n\x04\x00')], None, -1, 0),{}) ldap_search_ext put_filter: "(objectClass=mailUser)" put_filter: simple put_simple_filter: "objectClass=mailUser" ldap_build_search_req ATTRS: * ldap_send_initial_request ldap_send_server_request => result: 2 Getting page 1 *** ldap://r6:389/ - SimpleLDAPObject.result3 ((2, 1, -1),{}) ldap_result ld 0x11df67d0 msgid 2 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL wait4msg ld 0x11df67d0 msgid 2 (infinite timeout) wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: Empty ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry adding response ld 0x11df67d0 msgid 2 type 100: wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry adding response ld 0x11df67d0 msgid 2 type 100: wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry adding response ld 0x11df67d0 msgid 2 type 100: wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry adding response ld 0x11df67d0 msgid 2 type 100: wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry adding response ld 0x11df67d0 msgid 2 type 100: wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry adding response ld 0x11df67d0 msgid 2 type 100: wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry adding response ld 0x11df67d0 msgid 2 type 100: wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry adding response ld 0x11df67d0 msgid 2 type 100: wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-entry adding response ld 0x11df67d0 msgid 2 type 100: wait4msg continue ld 0x11df67d0 msgid 2 all 1 ** ld 0x11df67d0 Connections: * host: r6 port: 389 (default) refcnt: 2 status: Connected last used: Tue Mar 17 02:35:36 2009 ** ld 0x11df67d0 Outstanding Requests: * msgid 2, origid 2, status InProgress outstanding referrals 0, parent count 0 ** ld 0x11df67d0 Response Queue: * msgid 2, type 100 chained responses: * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 * msgid 2, type 100 ldap_chkResponseList ld 0x11df67d0 msgid 2 all 1 ldap_chkResponseList returns ld 0x11df67d0 NULL ldap_int_select read1msg: ld 0x11df67d0 msgid 2 all 1 read1msg: ld 0x11df67d0 msgid 2 message type search-result read1msg: ld 0x11df67d0 0 new referrals read1msg: mark request completed, ld 0x11df67d0 msgid 2 request done: ld 0x11df67d0 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 adding response ld 0x11df67d0 msgid 2 type 101: ldap_parse_result ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_dn ldap_first_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_get_values_len ldap_next_attribute ldap_msgfree => result: (101, [('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['1'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}xMpCOKC5I4INzFCab3WEmw=='], 'accountStatus': ['active'], 'sn': ['1'], 'homeDirectory': ['/home/vmail'], 'mail': ['1...@b.cn'], 'mailMessageStore': ['b.cn/1/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['1']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['2'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}yB5yjZ1ML2NvBn+JzBSGLA=='], 'accountStatus': ['active'], 'sn': ['2'], 'homeDirectory': ['/home/vmail'], 'mail': ['2...@b.cn'], 'mailMessageStore': ['b.cn/2/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['2']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['3'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}7MvIfktc4v4oMI/Z8qe68w=='], 'accountStatus': ['active'], 'sn': ['3'], 'homeDirectory': ['/home/vmail'], 'mail': ['3...@b.cn'], 'mailMessageStore': ['b.cn/3/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['3']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['4'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}qH/2eaLz5x2RgaZ7dUISLA=='], 'accountStatus': ['active'], 'sn': ['4'], 'homeDirectory': ['/home/vmail'], 'mail': ['4...@b.cn'], 'mailMessageStore': ['b.cn/4/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['4']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['5'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}5No7f7vOI0XXdysGdKMY1Q=='], 'accountStatus': ['active'], 'sn': ['5'], 'homeDirectory': ['/home/vmail'], 'mail': ['5...@b.cn'], 'mailMessageStore': ['b.cn/5/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['5']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['6'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}FnkJHFqID69vteYIfrGy3A=='], 'accountStatus': ['active'], 'sn': ['6'], 'homeDirectory': ['/home/vmail'], 'mail': ['6...@b.cn'], 'mailMessageStore': ['b.cn/6/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['6']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['7'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}jxTkX87qFnpaNt7dS+olQw=='], 'accountStatus': ['active'], 'sn': ['7'], 'homeDirectory': ['/home/vmail'], 'mail': ['7...@b.cn'], 'mailMessageStore': ['b.cn/7/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['7']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['8'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}yfD4lfuYq5FZ9R/QKX4jbQ=='], 'accountStatus': ['active'], 'sn': ['8'], 'homeDirectory': ['/home/vmail'], 'mail': ['8...@b.cn'], 'mailMessageStore': ['b.cn/8/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['8']}), ('mai...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['9'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}RcSMzi4tf73qGvxRx8atJg=='], 'accountStatus': ['active'], 'sn': ['9'], 'homeDirectory': ['/home/vmail'], 'mail': ['9...@b.cn'], 'mailMessageStore': ['b.cn/9/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['9']}), ('mail...@b.cn,ou=Users,domainName=b.cn,o=domains,dc=iredmail,dc=org', {'cn': ['10'], 'mailQuota': ['104857600'], 'objectClass': ['inetOrgPerson', 'mailUser', 'top'], 'userPassword': ['{MD5}09lEaAKkQll1XTjm0WPoIA=='], 'accountStatus': ['active'], 'sn': ['10'], 'homeDirectory': ['/home/vmail'], 'mail': ['1...@b.cn'], 'mailMessageStore': ['b.cn/10/'], 'enabledService': ['mail', 'imap', 'pop3', 'smtp', 'deliver'], 'uid': ['10']})], 2, [('1.2.840.113556.1.4.319', 0, '0\r\x02\x01\x00\x04\x08.\x02\x00\x00\x00\x00\x00\x00')]) Segmentation fault ---- -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail/ ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev