2KyCPWwF1fOAnrDig0LFHn changeset

Changeset393966393765 (b)
ParentNone (a)
ab
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'}
...
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
98
99
100
--- Revision None
+++ Revision 393966393765
@@ -0,0 +1,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'}