a | b | |
---|
| 0 | + | --------------------------------------------------------------------------- |
---|
| 0 | + | NO_SUCH_OBJECT Traceback (most recent call last) |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/sites/repwhatafpy/<ipython console> in <module>() |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/afpy/ldap/node.pyc in groups(self) |
---|
| 0 | + | 250 def groups(self): |
---|
| 0 | + | 251 """return groups as string""" |
---|
| 0 | + | --> 252 groups = self._conn.get_groups(self._dn) |
---|
| 0 | + | 253 return [getattr(g, g.rdn) for g in groups] |
---|
| 0 | + | 254 |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/afpy/ldap/connection.pyc in get_groups(self, dn, base_dn, node_class) |
---|
| 0 | + | 241 filter=filter, |
---|
| 0 | + | 242 bind_dn=self.bind_dn, |
---|
| 0 | + | --> 243 bind_pwd=self.bind_pw) |
---|
| 0 | + | 244 |
---|
| 0 | + | 245 |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/afpy/ldap/connection.pyc in search_nodes(self, node_class, **kwargs) |
---|
| 0 | + | 184 """like search nut return :class:`~afpy.ldap.node.Node` objects""" |
---|
| 0 | + | 185 node_class = node_class or self.node_class |
---|
| 0 | + | --> 186 return [node_class(r['dn'], attrs=r, conn=self) for r in self.search(**kwargs)] |
---|
| 0 | + | 187 |
---|
| 0 | + | 188 def get_dn(self, dn): |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/afpy/ldap/connection.pyc in search(self, **kwargs) |
---|
| 0 | + | 179 bind_pwd=self.bind_pw) |
---|
| 0 | + | 180 options.update(kwargs) |
---|
| 0 | + | --> 181 return self._conn.search(options.pop('base_dn'), options.pop('scope'), **options)['results'] |
---|
| 0 | + | 182 |
---|
| 0 | + | 183 def search_nodes(self, node_class=None, **kwargs): |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/dataflake/ldapconnection/connection.pyc in search(self, base, scope, fltr, attrs, convert_filter, bind_dn, bind_pwd) |
---|
| 0 | + | 198 |
---|
| 0 | + | 199 try: |
---|
| 0 | + | --> 200 res = connection.search_s(base, scope, fltr, attrs) |
---|
| 0 | + | 201 except ldap.PARTIAL_RESULTS: |
---|
| 0 | + | 202 res_type, res = connection.result(all=0) |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in search_s(self, base, scope, filterstr, attrlist, attrsonly) |
---|
| 0 | + | 500 |
---|
| 0 | + | 501 def search_s(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0): |
---|
| 0 | + | --> 502 return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout) |
---|
| 0 | + | 503 |
---|
| 0 | + | 504 def search_st(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0,timeout=-1): |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in search_ext_s(self, *args, **kwargs) |
---|
| 0 | + | 812 |
---|
| 0 | + | 813 def search_ext_s(self,*args,**kwargs): |
---|
| 0 | + | --> 814 return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs) |
---|
| 0 | + | 815 |
---|
| 0 | + | 816 def whoami_s(self,*args,**kwargs): |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in _apply_method_s(self, func, *args, **kwargs) |
---|
| 0 | + | 764 self.reconnect(self._uri) |
---|
| 0 | + | 765 try: |
---|
| 0 | + | --> 766 return func(self,*args,**kwargs) |
---|
| 0 | + | 767 except ldap.SERVER_DOWN: |
---|
| 0 | + | 768 SimpleLDAPObject.unbind_s(self) |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in search_ext_s(self, base, scope, filterstr, attrlist, attrsonly, serverctrls, clientctrls, timeout, sizelimit) |
---|
| 0 | + | 494 def search_ext_s(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0,serverctrls=None,clientctrls=None,timeout=-1,sizelimit=0): |
---|
| 0 | + | 495 msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit) |
---|
| 0 | + | --> 496 return self.result(msgid,all=1,timeout=timeout)[1] |
---|
| 0 | + | 497 |
---|
| 0 | + | 498 def search(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0): |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in result(self, msgid, all, timeout) |
---|
| 0 | + | 420 polling (timeout = 0), in which case (None, None) is returned. |
---|
| 0 | + | 421 """ |
---|
| 0 | + | --> 422 res_type,res_data,res_msgid = self.result2(msgid,all,timeout) |
---|
| 0 | + | 423 return res_type,res_data |
---|
| 0 | + | 424 |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in result2(self, msgid, all, timeout) |
---|
| 0 | + | 424 |
---|
| 0 | + | 425 def result2(self,msgid=ldap.RES_ANY,all=1,timeout=None): |
---|
| 0 | + | --> 426 res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout) |
---|
| 0 | + | 427 return res_type, res_data, res_msgid |
---|
| 0 | + | 428 |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in result3(self, msgid, all, timeout) |
---|
| 0 | + | 430 if timeout is None: |
---|
| 0 | + | 431 timeout = self.timeout |
---|
| 0 | + | --> 432 ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout) |
---|
| 0 | + | 433 if ldap_result is None: |
---|
| 0 | + | 434 rtype, rdata, rmsgid, decoded_serverctrls = (None,None,None,None) |
---|
| 0 | + | |
---|
| 0 | + | /home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in _ldap_call(self, func, *args, **kwargs) |
---|
| 0 | + | 94 try: |
---|
| 0 | + | 95 try: |
---|
| 0 | + | ---> 96 result = func(*args,**kwargs) |
---|
| 0 | + | 97 if __debug__ and self._trace_level>=2: |
---|
| 0 | + | 98 if func.__name__!="unbind_ext": |
---|
| 0 | + | |
---|
| 0 | + | NO_SUCH_OBJECT: {'info': '', 'desc': 'No such object'} |
---|
... | |
---|