We have a non regular class its a derived class from organizationalPerson,
i tried to set a limit to see a max 100 users but the sync_ldap crashes, i
have the debug output.
Command: set ldap_page_size 100
Command: testFilter
Traceback (most recent call last):
File "./sync_ldap.py", line 183, in ?
(config, ldap_context, user_database, google_context, log_config) = \
File "./sync_ldap.py", line 112, in DoMain
cmd.cmdloop()
File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
return func(arg)
File "/usr/local/adm/arc/google-apps-ldap-sync/commands.py", line 186, in
do_testFilter
self.new_users = self.ldap_context.Search(attrlist=['cn'])
File "/usr/local/adm/arc/google-apps-ldap-sync/ldap_ctxt.py", line 299,
in Search
users = self._PagedAsyncSearch(query, sizelimit, attrlist=attrlist)
File "/usr/local/adm/arc/google-apps-ldap-sync/ldap_ctxt.py", line 249,
in _PagedAsyncSearch
query, attrlist=attrlist, serverctrls=serverctrls)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 468, in
search_ext
EncodeControlTuples(serverctrls),
File "/usr/lib/python2.4/site-packages/ldap/controls.py", line 93, in
EncodeControlTuples
result = [
File "/usr/lib/python2.4/site-packages/ldap/controls.py", line 45, in
getEncodedTuple
return
(self.controlType,self.criticality,self.encodeControlValue(self.controlValue))
File "/usr/lib/python2.4/site-packages/ldap/controls.py", line 78, in
encodeControlValue
return _ldap.encode_page_control(size,cookie)
TypeError: an integer is required
What steps will reproduce the problem?
1. set ldap_page_size 1000
2.
3.
What is the expected output? What do you see instead?
Expected output is to see the app connect successfully but it doesn't it fails.
What version of the product are you using? On what operating system?
Redhat AS 5
Copyright 2006, Google, Inc.
All Rights Reserved.
sync_ldap.py 0.9
Please provide any additional information below.
Original issue reported on code.google.com by Jack.Sin...@gmail.com on 11 Mar 2009 at 3:33
Original issue reported on code.google.com by
Jack.Sin...@gmail.com
on 11 Mar 2009 at 3:33