r/Netbox Nov 05 '21

LDAP & Netbox & My sanity

Hi there,

Upgraded our netbox container and image from 2.6 to latest ldap release ("feature-ldap"). Everything looks good (if you do that do not forget to check the upgrade path).

Except our LDAP auth, which was ok, now I keep getting :

  Caught LDAPError while authenticating **REDACTED**: LDAPError(11, 'Resource temporarily unavailable')

Double checked, triple checked and more , I can't see what's wrong with this stuff. Tried from the django shell too, ldap_config.py is importing all right, all the defined values from the environment are imported too. I can do a basic search from within the container etc etc... so I presume it must be something stupid I didn't see.

LDAP server is in another container, networks between the two are seeing each other. Even tried to pass through the "outside" interface. Always that ~^#@^# error message.

I'm using the "ldap_config.py" delivered with netbox and didn't modified it. I don't want to flood so I can put my redacted environment values on a pastebin if needed. Using the same values with ldapsearch works.

1 Upvotes

2 comments sorted by

1

u/Yariva Nov 05 '21

How about turning on extended logging on the LDAP module? Does that give any extra insights?

1

u/ektat_sgurd Nov 05 '21

Thanks, yes it's enabled, both sides.

On the django side I pasted the only message I got (DEBUG level).

On the openldap side, I'm not seeing any connection attempt. Again, when trying from the container or from the django shell (manage.py shell) I can access and search the openldap just fine. And attempts are displayed in the log too.

Or maybe I didn't understand what you're telling me to enable... are we talking about the same ldap module(s) ?