Skip to content

Instantly share code, notes, and snippets.

/ldapdb-django Secret

Created September 5, 2014 21:10
Show Gist options
  • Save anonymous/3029037378b4116ef519 to your computer and use it in GitHub Desktop.
Save anonymous/3029037378b4116ef519 to your computer and use it in GitHub Desktop.
In [2]: from backend_django.sshkeys.models import LdapUser
In [3]: jt = LdapUser.objects.first()
ldap_create
ldap_url_parse_ext(ldap://pldapmash10001.mgmt.mydomain.net)
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP pldapmash10001.mgmt.mydomain.net:389
ldap_new_socket: 6
ldap_prepare_socket: 6
ldap_connect_to_host: Trying 10.119.134.41:389
ldap_pvt_connect: fd: 6 tm: -1 async: 0
ldap_open_defconn: successful
ldap_send_server_request
ldap_result ld 0x7fc0fcf5bb90 msgid 1
wait4msg ld 0x7fc0fcf5bb90 msgid 1 (infinite timeout)
wait4msg continue ld 0x7fc0fcf5bb90 msgid 1 all 1
** ld 0x7fc0fcf5bb90 Connections:
* host: pldapmash10001.mgmt.mydomain.net port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Sep 5 14:03:24 2014
** ld 0x7fc0fcf5bb90 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0x7fc0fcf5bb90 request count 1 (abandoned 0)
** ld 0x7fc0fcf5bb90 Red-Black Tree Response Queue:
Empty
ld 0x7fc0fcf5bb90 response count 1
ldap_chkResponseList ld 0x7fc0fcf5bb90 msgid 1 all 1
ldap_chkResponseList returns ld 0x7fc0fcf5bb90 NULL
ldap_int_select
read1msg: ld 0x7fc0fcf5bb90 msgid 1 all 1
read1msg: ld 0x7fc0fcf5bb90 msgid 1 message type bind
read1msg: ld 0x7fc0fcf5bb90 0 new referrals
read1msg: mark request completed, ld 0x7fc0fcf5bb90 msgid 1
request done: ld 0x7fc0fcf5bb90 msgid 1
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_parse_result
ldap_msgfree
ldap_search_ext
put_filter: "(&(objectClass=inetOrgPerson)(objectClass=inetUser)(objectClass=ldapPublicKey)(objectClass=organizationalPerson)(objectClass=person)(objectClass=posixAccount)(objectClass=pwmUser)(objectClass=shadowAccount)(objectClass=top))"
put_filter: AND
put_filter_list "(objectClass=inetOrgPerson)(objectClass=inetUser)(objectClass=ldapPublicKey)(objectClass=organizationalPerson)(objectClass=person)(objectClass=posixAccount)(objectClass=pwmUser)(objectClass=shadowAccount)(objectClass=top)"
put_filter: "(objectClass=inetOrgPerson)"
put_filter: simple
put_simple_filter: "objectClass=inetOrgPerson"
put_filter: "(objectClass=inetUser)"
put_filter: simple
put_simple_filter: "objectClass=inetUser"
put_filter: "(objectClass=ldapPublicKey)"
put_filter: simple
put_simple_filter: "objectClass=ldapPublicKey"
put_filter: "(objectClass=organizationalPerson)"
put_filter: simple
put_simple_filter: "objectClass=organizationalPerson"
put_filter: "(objectClass=person)"
put_filter: simple
put_simple_filter: "objectClass=person"
put_filter: "(objectClass=posixAccount)"
put_filter: simple
put_simple_filter: "objectClass=posixAccount"
put_filter: "(objectClass=pwmUser)"
put_filter: simple
put_simple_filter: "objectClass=pwmUser"
put_filter: "(objectClass=shadowAccount)"
put_filter: simple
put_simple_filter: "objectClass=shadowAccount"
put_filter: "(objectClass=top)"
put_filter: simple
put_simple_filter: "objectClass=top"
ldap_build_search_req ATTRS: mail givenName cn gecos gidNumber gidNumber homeDirectory sn loginShell mail memberOf userPassword pwmEventLog shadowExpire shadowFlag shadowLastChange shadowMax shadowMin shadowWarning sn sshPublicKey uid uidNumber uid
ldap_send_initial_request
ldap_send_server_request
ldap_result ld 0x7fc0fcf5bb90 msgid 2
wait4msg ld 0x7fc0fcf5bb90 msgid 2 (infinite timeout)
wait4msg continue ld 0x7fc0fcf5bb90 msgid 2 all 1
** ld 0x7fc0fcf5bb90 Connections:
* host: pldapmash10001.mgmt.mydomain.net port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Sep 5 14:03:24 2014
** ld 0x7fc0fcf5bb90 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x7fc0fcf5bb90 request count 1 (abandoned 0)
** ld 0x7fc0fcf5bb90 Red-Black Tree Response Queue:
Empty
ld 0x7fc0fcf5bb90 response count 1
ldap_chkResponseList ld 0x7fc0fcf5bb90 msgid 2 all 1
ldap_chkResponseList returns ld 0x7fc0fcf5bb90 NULL
ldap_int_select
read1msg: ld 0x7fc0fcf5bb90 msgid 2 all 1
ber_get_next failed.
wait4msg continue ld 0x7fc0fcf5bb90 msgid 2 all 1
** ld 0x7fc0fcf5bb90 Connections:
* host: pldapmash10001.mgmt.mydomain.net port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Sep 5 14:03:24 2014
** ld 0x7fc0fcf5bb90 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x7fc0fcf5bb90 request count 1 (abandoned 0)
** ld 0x7fc0fcf5bb90 Red-Black Tree Response Queue:
Empty
ld 0x7fc0fcf5bb90 response count 1
ldap_chkResponseList ld 0x7fc0fcf5bb90 msgid 2 all 1
ldap_chkResponseList returns ld 0x7fc0fcf5bb90 NULL
ldap_int_select
read1msg: ld 0x7fc0fcf5bb90 msgid 2 all 1
read1msg: ld 0x7fc0fcf5bb90 msgid 2 message type search-entry
wait4msg continue ld 0x7fc0fcf5bb90 msgid 2 all 1
** ld 0x7fc0fcf5bb90 Connections:
* host: pldapmash10001.mgmt.mydomain.net port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Sep 5 14:03:24 2014
** ld 0x7fc0fcf5bb90 Outstanding Requests:
* msgid 2, origid 2, status InProgress
outstanding referrals 0, parent count 0
ld 0x7fc0fcf5bb90 request count 1 (abandoned 0)
** ld 0x7fc0fcf5bb90 Red-Black Tree Response Queue:
* msgid 2, type 100
ld 0x7fc0fcf5bb90 response count 1
ldap_chkResponseList ld 0x7fc0fcf5bb90 msgid 2 all 1
ldap_chkResponseList returns ld 0x7fc0fcf5bb90 NULL
ldap_int_select
read1msg: ld 0x7fc0fcf5bb90 msgid 2 all 1
read1msg: ld 0x7fc0fcf5bb90 msgid 2 message type search-result
read1msg: ld 0x7fc0fcf5bb90 0 new referrals
read1msg: mark request completed, ld 0x7fc0fcf5bb90 msgid 2
request done: ld 0x7fc0fcf5bb90 msgid 2
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)
adding response ld 0x7fc0fcf5bb90 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_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
In [4]: jt
Out[4]: <LdapUser: john>
In [5]: jt.
jt.DoesNotExist jt.clean_fields jt.full_name jt.mail jt.pwm_event_log jt.shadow_expire jt.sshkeys
jt.Meta jt.date_error_message jt.gecos jt.member_of jt.save jt.shadow_flag jt.uid
jt.MultipleObjectsReturned jt.delete jt.gid_number jt.object_classes jt.save_base jt.shadow_last_change jt.uid_number
jt.base_dn jt.dn jt.group jt.objects jt.saved_pk jt.shadow_max jt.unique_error_message
jt.build_dn jt.email jt.home_directory jt.password jt.scoped jt.shadow_min jt.username
jt.build_rdn jt.first_name jt.last_name jt.pk jt.search_scope jt.shadow_warning jt.validate_unique
jt.clean jt.full_clean jt.login_shell jt.prepare_database_save jt.serializable_value jt.sn
In [5]: jt.sshkeys
Out[5]:
[u'',
u'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD4Kmb9uFDyfGmTdngk5Zmz2VO/fwYWAeXPX9IqM7mgBg41z2HdkK+4mSXLfxIqhnnxFqbJA6bKncZDRYpHMMs1rxyrryTKPt9hO+hhp7153kGCTztS+LvcDBBA9HPTvs9wk/e54oNe+6kpYe7DT8Z8gvgZEfdW1/u/hW7JQdfO+0eCGoQkQ7J3ZMz8bxrIFs9dhcUMZ6bTUO2DZK1In4QiKEztZl9gb7RpOqGKjpFEeyX42bSM6QDCGhYrVJCcec5MCAGSmQWY5YCtUUge5IHgUZho6uCMGv9ZZ4aAidpyCQHGrzIGQxqD/YNdyC51qaBLScVFSrSJU7ijlKOjMFqb john@mydomain.com']
In [6]: jt.sshkeys.pop(0)
Out[6]: u''
In [7]: jt.sshkeys
Out[7]: [u'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD4Kmb9uFDyfGmTdngk5Zmz2VO/fwYWAeXPX9IqM7mgBg41z2HdkK+4mSXLfxIqhnnxFqbJA6bKncZDRYpHMMs1rxyrryTKPt9hO+hhp7153kGCTztS+LvcDBBA9HPTvs9wk/e54oNe+6kpYe7DT8Z8gvgZEfdW1/u/hW7JQdfO+0eCGoQkQ7J3ZMz8bxrIFs9dhcUMZ6bTUO2DZK1In4QiKEztZl9gb7RpOqGKjpFEeyX42bSM6QDCGhYrVJCcec5MCAGSmQWY5YCtUUge5IHgUZho6uCMGv9ZZ4aAidpyCQHGrzIGQxqD/YNdyC51qaBLScVFSrSJU7ijlKOjMFqb john@mydomain.com']
In [8]: jt.save()
ldap_search_ext
put_filter: "(&(objectClass=inetOrgPerson)(objectClass=inetUser)(objectClass=ldapPublicKey)(objectClass=organizationalPerson)(objectClass=person)(objectClass=posixAccount)(objectClass=pwmUser)(objectClass=shadowAccount)(objectClass=top)(uid=john))"
put_filter: AND
put_filter_list "(objectClass=inetOrgPerson)(objectClass=inetUser)(objectClass=ldapPublicKey)(objectClass=organizationalPerson)(objectClass=person)(objectClass=posixAccount)(objectClass=pwmUser)(objectClass=shadowAccount)(objectClass=top)(uid=john)"
put_filter: "(objectClass=inetOrgPerson)"
put_filter: simple
put_simple_filter: "objectClass=inetOrgPerson"
put_filter: "(objectClass=inetUser)"
put_filter: simple
put_simple_filter: "objectClass=inetUser"
put_filter: "(objectClass=ldapPublicKey)"
put_filter: simple
put_simple_filter: "objectClass=ldapPublicKey"
put_filter: "(objectClass=organizationalPerson)"
put_filter: simple
put_simple_filter: "objectClass=organizationalPerson"
put_filter: "(objectClass=person)"
put_filter: simple
put_simple_filter: "objectClass=person"
put_filter: "(objectClass=posixAccount)"
put_filter: simple
put_simple_filter: "objectClass=posixAccount"
put_filter: "(objectClass=pwmUser)"
put_filter: simple
put_simple_filter: "objectClass=pwmUser"
put_filter: "(objectClass=shadowAccount)"
put_filter: simple
put_simple_filter: "objectClass=shadowAccount"
put_filter: "(objectClass=top)"
put_filter: simple
put_simple_filter: "objectClass=top"
put_filter: "(uid=john)"
put_filter: simple
put_simple_filter: "uid=john"
ldap_build_search_req ATTRS: mail givenName cn gecos gidNumber gidNumber homeDirectory sn loginShell mail memberOf userPassword pwmEventLog shadowExpire shadowFlag shadowLastChange shadowMax shadowMin shadowWarning sn sshPublicKey uid uidNumber uid
ldap_send_initial_request
ldap_send_server_request
ldap_result ld 0x7fc0fcf5bb90 msgid 3
wait4msg ld 0x7fc0fcf5bb90 msgid 3 (infinite timeout)
wait4msg continue ld 0x7fc0fcf5bb90 msgid 3 all 1
** ld 0x7fc0fcf5bb90 Connections:
* host: pldapmash10001.mgmt.mydomain.net port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Sep 5 14:03:44 2014
** ld 0x7fc0fcf5bb90 Outstanding Requests:
* msgid 3, origid 3, status InProgress
outstanding referrals 0, parent count 0
ld 0x7fc0fcf5bb90 request count 1 (abandoned 0)
** ld 0x7fc0fcf5bb90 Red-Black Tree Response Queue:
Empty
ld 0x7fc0fcf5bb90 response count 1
ldap_chkResponseList ld 0x7fc0fcf5bb90 msgid 3 all 1
ldap_chkResponseList returns ld 0x7fc0fcf5bb90 NULL
ldap_int_select
read1msg: ld 0x7fc0fcf5bb90 msgid 3 all 1
ber_get_next failed.
wait4msg continue ld 0x7fc0fcf5bb90 msgid 3 all 1
** ld 0x7fc0fcf5bb90 Connections:
* host: pldapmash10001.mgmt.mydomain.net port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Sep 5 14:03:44 2014
** ld 0x7fc0fcf5bb90 Outstanding Requests:
* msgid 3, origid 3, status InProgress
outstanding referrals 0, parent count 0
ld 0x7fc0fcf5bb90 request count 1 (abandoned 0)
** ld 0x7fc0fcf5bb90 Red-Black Tree Response Queue:
Empty
ld 0x7fc0fcf5bb90 response count 1
ldap_chkResponseList ld 0x7fc0fcf5bb90 msgid 3 all 1
ldap_chkResponseList returns ld 0x7fc0fcf5bb90 NULL
ldap_int_select
read1msg: ld 0x7fc0fcf5bb90 msgid 3 all 1
read1msg: ld 0x7fc0fcf5bb90 msgid 3 message type search-entry
wait4msg continue ld 0x7fc0fcf5bb90 msgid 3 all 1
** ld 0x7fc0fcf5bb90 Connections:
* host: pldapmash10001.mgmt.mydomain.net port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Sep 5 14:03:44 2014
** ld 0x7fc0fcf5bb90 Outstanding Requests:
* msgid 3, origid 3, status InProgress
outstanding referrals 0, parent count 0
ld 0x7fc0fcf5bb90 request count 1 (abandoned 0)
** ld 0x7fc0fcf5bb90 Red-Black Tree Response Queue:
* msgid 3, type 100
ld 0x7fc0fcf5bb90 response count 1
ldap_chkResponseList ld 0x7fc0fcf5bb90 msgid 3 all 1
ldap_chkResponseList returns ld 0x7fc0fcf5bb90 NULL
ldap_int_select
read1msg: ld 0x7fc0fcf5bb90 msgid 3 all 1
read1msg: ld 0x7fc0fcf5bb90 msgid 3 message type search-result
read1msg: ld 0x7fc0fcf5bb90 0 new referrals
read1msg: mark request completed, ld 0x7fc0fcf5bb90 msgid 3
request done: ld 0x7fc0fcf5bb90 msgid 3
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 3, msgid 3)
adding response ld 0x7fc0fcf5bb90 msgid 3 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_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
ldap_rename
ldap_send_initial_request
ldap_send_server_request
ldap_result ld 0x7fc0fcf5bb90 msgid 4
wait4msg ld 0x7fc0fcf5bb90 msgid 4 (infinite timeout)
wait4msg continue ld 0x7fc0fcf5bb90 msgid 4 all 1
** ld 0x7fc0fcf5bb90 Connections:
* host: pldapmash10001.mgmt.mydomain.net port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Sep 5 14:03:45 2014
** ld 0x7fc0fcf5bb90 Outstanding Requests:
* msgid 4, origid 4, status InProgress
outstanding referrals 0, parent count 0
ld 0x7fc0fcf5bb90 request count 1 (abandoned 0)
** ld 0x7fc0fcf5bb90 Red-Black Tree Response Queue:
Empty
ld 0x7fc0fcf5bb90 response count 1
ldap_chkResponseList ld 0x7fc0fcf5bb90 msgid 4 all 1
ldap_chkResponseList returns ld 0x7fc0fcf5bb90 NULL
ldap_int_select
read1msg: ld 0x7fc0fcf5bb90 msgid 4 all 1
read1msg: ld 0x7fc0fcf5bb90 msgid 4 message type rename
read1msg: ld 0x7fc0fcf5bb90 0 new referrals
read1msg: mark request completed, ld 0x7fc0fcf5bb90 msgid 4
request done: ld 0x7fc0fcf5bb90 msgid 4
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 4, msgid 4)
ldap_parse_result
ldap_msgfree
ldap_modify_ext
ldap_send_initial_request
ldap_send_server_request
ldap_result ld 0x7fc0fcf5bb90 msgid 5
wait4msg ld 0x7fc0fcf5bb90 msgid 5 (infinite timeout)
wait4msg continue ld 0x7fc0fcf5bb90 msgid 5 all 1
** ld 0x7fc0fcf5bb90 Connections:
* host: pldapmash10001.mgmt.mydomain.net port: 389 (default)
refcnt: 2 status: Connected
last used: Fri Sep 5 14:03:45 2014
** ld 0x7fc0fcf5bb90 Outstanding Requests:
* msgid 5, origid 5, status InProgress
outstanding referrals 0, parent count 0
ld 0x7fc0fcf5bb90 request count 1 (abandoned 0)
** ld 0x7fc0fcf5bb90 Red-Black Tree Response Queue:
Empty
ld 0x7fc0fcf5bb90 response count 1
ldap_chkResponseList ld 0x7fc0fcf5bb90 msgid 5 all 1
ldap_chkResponseList returns ld 0x7fc0fcf5bb90 NULL
ldap_int_select
read1msg: ld 0x7fc0fcf5bb90 msgid 5 all 1
read1msg: ld 0x7fc0fcf5bb90 msgid 5 message type modify
read1msg: ld 0x7fc0fcf5bb90 0 new referrals
read1msg: mark request completed, ld 0x7fc0fcf5bb90 msgid 5
request done: ld 0x7fc0fcf5bb90 msgid 5
res_errno: 32, res_error: <>, res_matched: <uid=john,ou=People,dc=mgmt,dc=mydomain,dc=net>
ldap_free_request (origid 5, msgid 5)
ldap_parse_result
ldap_msgfree
ldap_err2string
---------------------------------------------------------------------------
NO_SUCH_OBJECT Traceback (most recent call last)
<ipython-input-8-6806e063544e> in <module>()
----> 1 jt.save()
/Users/john/.virtualenvs/django-ldap/lib/python2.7/site-packages/ldapdb/models/base.pyc in save(self, using)
147
148 logger.debug("Modifying existing LDAP entry %s" % self.dn)
--> 149 connection.modify_s(self.dn, modlist)
150 else:
151 logger.debug("No changes to be saved to LDAP entry %s" %
/Users/john/.virtualenvs/django-ldap/lib/python2.7/site-packages/ldapdb/backends/ldap/base.pyc in modify_s(self, dn, modlist)
131 def modify_s(self, dn, modlist):
132 cursor = self._cursor()
--> 133 return cursor.connection.modify_s(dn.encode(self.charset), modlist)
134
135 def rename_s(self, dn, newrdn):
/Users/john/.virtualenvs/django-ldap/lib/python2.7/site-packages/ldap/ldapobject.pyc in modify_s(self, dn, modlist)
355 def modify_s(self,dn,modlist):
356 msgid = self.modify(dn,modlist)
--> 357 return self.result(msgid,all=1,timeout=self.timeout)
358
359 def modrdn(self,dn,newrdn,delold=1):
/Users/john/.virtualenvs/django-ldap/lib/python2.7/site-packages/ldap/ldapobject.pyc in result(self, msgid, all, timeout)
456 polling (timeout = 0), in which case (None, None) is returned.
457 """
--> 458 resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
459 return resp_type, resp_data
460
/Users/john/.virtualenvs/django-ldap/lib/python2.7/site-packages/ldap/ldapobject.pyc in result2(self, msgid, all, timeout)
460
461 def result2(self,msgid=ldap.RES_ANY,all=1,timeout=None):
--> 462 resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)
463 return resp_type, resp_data, resp_msgid
464
/Users/john/.virtualenvs/django-ldap/lib/python2.7/site-packages/ldap/ldapobject.pyc in result3(self, msgid, all, timeout, resp_ctrl_classes)
467 msgid,all,timeout,
468 add_ctrls=0,add_intermediates=0,add_extop=0,
--> 469 resp_ctrl_classes=resp_ctrl_classes
470 )
471 return resp_type, resp_data, resp_msgid, decoded_resp_ctrls
/Users/john/.virtualenvs/django-ldap/lib/python2.7/site-packages/ldap/ldapobject.pyc in result4(self, msgid, all, timeout, add_ctrls, add_intermediates, add_extop, resp_ctrl_classes)
474 if timeout is None:
475 timeout = self.timeout
--> 476 ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
477 if ldap_result is None:
478 resp_type, resp_data, resp_msgid, resp_ctrls, resp_name, resp_value = (None,None,None,None,None,None)
/Users/john/.virtualenvs/django-ldap/lib/python2.7/site-packages/ldap/ldapobject.pyc in _ldap_call(self, func, *args, **kwargs)
97 try:
98 try:
---> 99 result = func(*args,**kwargs)
100 if __debug__ and self._trace_level>=2:
101 if func.__name__!="unbind_ext":
NO_SUCH_OBJECT: {'matched': 'uid=john,ou=People,dc=mgmt,dc=mydomain,dc=net', 'desc': 'No such object'}
In [9]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment