Revision 616231306234 () - Diff

Link to this snippet: https://friendpaste.com/2KyCPWwF1fOAnrDig0LFHn
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---------------------------------------------------------------------------
NO_SUCH_OBJECT Traceback (most recent call last)

/home/matthieu/Projects/pylons/afpytest/sites/repwhatafpy/<ipython console> in <module>()

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/afpy/ldap/node.pyc in groups(self)
250 def groups(self):
251 """return groups as string"""
--> 252 groups = self._conn.get_groups(self._dn)
253 return [getattr(g, g.rdn) for g in groups]
254

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/afpy/ldap/connection.pyc in get_groups(self, dn, base_dn, node_class)
241 filter=filter,
242 bind_dn=self.bind_dn,
--> 243 bind_pwd=self.bind_pw)
244
245

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/afpy/ldap/connection.pyc in search_nodes(self, node_class, **kwargs)
184 """like search nut return :class:`~afpy.ldap.node.Node` objects"""
185 node_class = node_class or self.node_class
--> 186 return [node_class(r['dn'], attrs=r, conn=self) for r in self.search(**kwargs)]
187
188 def get_dn(self, dn):

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/afpy/ldap/connection.pyc in search(self, **kwargs)
179 bind_pwd=self.bind_pw)
180 options.update(kwargs)
--> 181 return self._conn.search(options.pop('base_dn'), options.pop('scope'), **options)['results']
182
183 def search_nodes(self, node_class=None, **kwargs):

/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)
198
199 try:
--> 200 res = connection.search_s(base, scope, fltr, attrs)
201 except ldap.PARTIAL_RESULTS:
202 res_type, res = connection.result(all=0)

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in search_s(self, base, scope, filterstr, attrlist, attrsonly)
500
501 def search_s(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0):
--> 502 return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
503
504 def search_st(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0,timeout=-1):

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in search_ext_s(self, *args, **kwargs)
812
813 def search_ext_s(self,*args,**kwargs):
--> 814 return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
815
816 def whoami_s(self,*args,**kwargs):

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in _apply_method_s(self, func, *args, **kwargs)
764 self.reconnect(self._uri)
765 try:
--> 766 return func(self,*args,**kwargs)
767 except ldap.SERVER_DOWN:
768 SimpleLDAPObject.unbind_s(self)

/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)
494 def search_ext_s(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0,serverctrls=None,clientctrls=None,timeout=-1,sizelimit=0):
495 msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit)
--> 496 return self.result(msgid,all=1,timeout=timeout)[1]
497
498 def search(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0):

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in result(self, msgid, all, timeout)
420 polling (timeout = 0), in which case (None, None) is returned.
421 """
--> 422 res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
423 return res_type,res_data
424

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in result2(self, msgid, all, timeout)
424
425 def result2(self,msgid=ldap.RES_ANY,all=1,timeout=None):
--> 426 res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
427 return res_type, res_data, res_msgid
428

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in result3(self, msgid, all, timeout)
430 if timeout is None:
431 timeout = self.timeout
--> 432 ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
433 if ldap_result is None:
434 rtype, rdata, rmsgid, decoded_serverctrls = (None,None,None,None)

/home/matthieu/Projects/pylons/afpytest/lib/python2.6/site-packages/ldap/ldapobject.pyc in _ldap_call(self, func, *args, **kwargs)
94 try:
95 try:
---> 96 result = func(*args,**kwargs)
97 if __debug__ and self._trace_level>=2:
98 if func.__name__!="unbind_ext":

NO_SUCH_OBJECT: {'info': '', 'desc': 'No such object'}