Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size Limit Exceeded #54

Closed
jtpereyda opened this issue Oct 1, 2015 · 1 comment
Closed

Size Limit Exceeded #54

jtpereyda opened this issue Oct 1, 2015 · 1 comment

Comments

@jtpereyda
Copy link
Contributor

Need a workaround for ldap.SIZELIMIT_EXCEEDED, unless one already exists.

I found a couple suggestions poking around online, but haven't gotten anything working yet.

Error output:

$ sudo nsscache update --full
ERROR:Update:Source map empty during full update, aborting. Use --force-write to override.
WARNING:GroupMap:duplicate key detected when adding to map: 'Domain Users', overwritten
WARNING:GroupMap:duplicate key detected when adding to map: 'Domain Users', overwritten
WARNING:GroupMap:duplicate key detected when adding to map: 'Domain Users', overwritten
WARNING:GroupMap:duplicate key detected when adding to map: 'Domain Computers', overwritten
WARNING:GroupMap:duplicate key detected when adding to map: 'Domain Controllers', overwritten
WARNING:GroupMap:duplicate key detected when adding to map: 'Domain Computers', overwritten
WARNING:GroupMap:duplicate key detected when adding to map: 'Domain Controllers', overwritten
Traceback (most recent call last):
  File "/usr/local/bin/nsscache", line 33, in <module>
    return_value = nsscache_app.Run(sys.argv[1:], os.environ)
  File "/usr/local/lib/python2.7/dist-packages/nss_cache/app.py", line 240, in Run
    retval = command_callable().Run(conf=conf, args=args)
  File "/usr/local/lib/python2.7/dist-packages/nss_cache/command.py", line 230, in Run
    force_lock=options.force_lock)
  File "/usr/local/lib/python2.7/dist-packages/nss_cache/command.py", line 303, in UpdateMaps
    force_write=force_write)
  File "/usr/local/lib/python2.7/dist-packages/nss_cache/update/updater.py", line 265, in UpdateFromSource
    force_write, location=None)
  File "/usr/local/lib/python2.7/dist-packages/nss_cache/update/map_updater.py", line 75, in UpdateCacheFromSource
    location=location)
  File "/usr/local/lib/python2.7/dist-packages/nss_cache/sources/source.py", line 67, in GetMap
    return self.GetGroupMap(since)
  File "/usr/local/lib/python2.7/dist-packages/nss_cache/sources/ldapsource.py", line 309, in GetGroupMap
    since=since)
  File "/usr/local/lib/python2.7/dist-packages/nss_cache/sources/ldapsource.py", line 503, in GetUpdates
    for obj in source:
  File "/usr/local/lib/python2.7/dist-packages/nss_cache/sources/ldapsource.py", line 229, in __iter__
    timeout=self.conf['timelimit'])
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 458, in result
    resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 462, in result2
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 469, in result3
    resp_ctrl_classes=resp_ctrl_classes
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 476, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 99, in _ldap_call
    result = func(*args,**kwargs)
ldap.SIZELIMIT_EXCEEDED: {'desc': 'Size limit exceeded'}
@jaqx0r
Copy link
Contributor

jaqx0r commented Oct 2, 2016

Fixed in #74, thanks!

@jaqx0r jaqx0r closed this as completed Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants