rhodecode v2 ldap integration broken

42 views
Skip to first unread message

Justinas Urbanavicius

unread,
Aug 8, 2013, 6:20:57 AM8/8/13
to rhod...@googlegroups.com
after updating rhodecode i get the following error when logging in using ldap account:
2013-08-08 13:17:23.663 ERROR [rhodecode.lib.auth] Traceback (most recent call last):
  File "/opt/rhodecode/rhodecode/lib/auth.py", line 215, in authenticate
    aldap = AuthLdap(**kwargs)
  File "/opt/rhodecode/rhodecode/lib/auth_ldap.py", line 58, in __init__
    self.TLS_REQCERT = getattr(ldap, 'OPT_X_TLS_%s' % tls_reqcert,
NameError: global name 'ldap' is not defined


previously it worked fine

am i missing some dependency ?

Marcin Kuzminski

unread,
Aug 8, 2013, 9:15:26 AM8/8/13
to rhod...@googlegroups.com
That's is very odd can you double check your installation, in RhodeCode 2.0.0 there's no such file like /lib/auth_ldap.py
IN v2 there are auth plugins in /lib/auth_modules/*

Cheers

Marcin Kuzminski



--
You received this message because you are subscribed to the Google Groups "rhodecode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhodecode+...@googlegroups.com.
To post to this group, send email to rhod...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Justinas Urbanavicius

unread,
Aug 8, 2013, 9:46:49 AM8/8/13
to rhod...@googlegroups.com
double checked and you are right, it appears the paster is using old files from mercurial v1.4.4 :(


--
You received this message because you are subscribed to a topic in the Google Groups "rhodecode" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rhodecode/7hEB8QObiCM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rhodecode+...@googlegroups.com.

To post to this group, send email to rhod...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Justinas
Reply all
Reply to author
Forward
0 new messages