Re: LDAP setup with 1.5.4

2011-03-25 Thread Stephen Gallagher
On 03/25/2011 12:35 PM, storms wrote:
> I am trying to setup LDAP on my new install with 1.5.4 on RedHat using
> apache + mod_python.  I can't seem to get it to work...
> Here's my latest from the /var/log/httpd/error_log... I see the
> warning messages but not sure how to proceed with them...
>
> I have defined the following in Authentication Settings page:
> LDAP Server: ldap://:389
> LDAP BaseDN:  dc=sendmail,dc=com
> User Mask: (&(objectClass=User) (mailNickname=%s))
>
...
> WARNING:root:LDAP error: The specified object does not exist in the
> Directory: (&(objectClass=User) (mailNickname=admin))
>

I'd guess that your User Mask is incorrect. Are you sure that
mailNickname is the attribute you want to use for your user lookup?
Might it be something like 'uid' instead? Also, objectClass=User is not
standard RFC2307.

Maybe you want:
(&(objectClass=posixUser)(uid=%s))


-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: LDAP setup with 1.5.4

2011-03-25 Thread Dan Young
On Fri, Mar 25, 2011 at 9:35 AM, storms  wrote:
> I have defined the following in Authentication Settings page:
> LDAP Server:     ldap://:389
> LDAP BaseDN:  dc=sendmail,dc=com
> User Mask:         (&(objectClass=User) (mailNickname=%s))
...snip...
> WARNING:root:LDAP error: The specified object does not exist in the
> Directory: (&(objectClass=User) (mailNickname=admin))

Try (assuming you have openldap-clients installed):
ldapsearch -x -h  -b dc=sendmail,dc=com \
'(&(objectClass=User) (mailNickname=foo))'

where 'foo' is the username you're trying to log in with.

You'll want to examine your LDAP object to make sure it has
objectClass=User and mailNickname=foo, of course.

--
Dan Young 
Multnomah ESD - Technology Services
503-257-1562

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: LDAP setup with 1.5.4

2011-03-25 Thread Jan Koprowski
Hi,

  Test this configuration with the same values in Apache Directory
Studio (http://directory.apache.org/studio/) and check what is wrong
:)
  Usually helps.

Good luck,

On Fri, Mar 25, 2011 at 5:35 PM, storms  wrote:
> I am trying to setup LDAP on my new install with 1.5.4 on RedHat using
> apache + mod_python.  I can't seem to get it to work...
> Here's my latest from the /var/log/httpd/error_log... I see the
> warning messages but not sure how to proceed with them...
>
> I have defined the following in Authentication Settings page:
> LDAP Server:     ldap://:389
> LDAP BaseDN:  dc=sendmail,dc=com
> User Mask:         (&(objectClass=User) (mailNickname=%s))
>
> [Fri Mar 25 09:12:32 2011] [notice] mod_python: Creating 4 session
> mutexes based on 256 max processes and 0 max threads.
> [Fri Mar 25 09:12:32 2011] [notice] Apache/2.2.3 (Red Hat) configured
> -- resuming normal operations
> /usr/lib/python2.4/site-packages/Django-1.3-py2.4.egg/django/db/
> __init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated;
> use settings.DATABASES instead.
>  DeprecationWarning
> /usr/lib/python2.4/site-packages/Django-1.3-py2.4.egg/django/db/
> __init__.py:60: DeprecationWarning: Short names for ENGINE in database
> configurations are deprecated. Prepend default.ENGINE with
> 'django.db.backends.'
>  DeprecationWarning
> /usr/lib/python2.4/site-packages/pycrypto-2.3-py2.4-linux-i686.egg/
> Crypto/Util/randpool.py:40: RandomPool_DeprecationWarning: This
> application uses RandomPool, which is BROKEN in older releases.  See
> http://www.pycrypto.org/randpool-broken
> /usr/lib/python2.4/site-packages/Django-1.3-py2.4.egg/django/contrib/
> auth/__init__.py:26: DeprecationWarning: Authentication backends
> without a `supports_object_permissions` attribute are deprecated.
> Please define it in  'reviewboard.accounts.backends.LDAPBackend'>.
>  DeprecationWarning)
> /usr/lib/python2.4/site-packages/Django-1.3-py2.4.egg/django/contrib/
> auth/__init__.py:31: DeprecationWarning: Authentication backends
> without a `supports_anonymous_user` attribute are deprecated. Please
> define it in .
>  DeprecationWarning)
> WARNING:root:LDAP error: The specified object does not exist in the
> Directory: (&(objectClass=User) (mailNickname=admin))
>
> --
> Want to help the Review Board project? Donate today at 
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to 
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/reviewboard?hl=en



-- 
><> Jan Koprowski

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en