Re: search_s successful, but not logging in

13 views
Skip to first unread message
Message has been deleted

Peter Sagerson

unread,
Mar 14, 2011, 3:19:59 PM3/14/11
to django-a...@googlegroups.com
This log output doesn't say anything about creating a user, so it must be finding an existing one (perhaps previously created by LDAPBackend). Authentication (simple_bind) is working, as you would not otherwise get to populating the user. I would first make sure that this user has is_active=True. More generally, I would put a password on the user FOOBAR and try to log in via ModelBackend. If you can log in with a single user through ModelBackend but not LDAPBackend and there's no exception in the log, then we'll have a mystery.


On Mar 13, 2011, at 9:13 PM, Nick Presta wrote:

> Hey,
>
> I get the following when I login via my LDAP credentials (via my
> logger):
>
> Populating Django user FOOBAR
> search_s('uid=FOOBAR,ou=People,o=TEST', 0, '(objectClass=*)') returned
> 1 objects: uid=FOOBAR,ou=People,o=TEST
>
> My settings.py looks like this:
> AUTH_LDAP_SERVER_URI = "ldap://myldapserver"
> AUTH_LDAP_USER_DN_TEMPLATE = "uid=%(user)s,ou=People,o=TEST"
> AUTH_LDAP_USER_ATTR_MAP = {"first_name": "givenName", "last_name":
> "sn", "email": "mail"}
> AUTHENTICATION_BACKENDS = (
> 'django_auth_ldap.backend.LDAPBackend',
> 'django.contrib.auth.backends.ModelBackend',
> )
>
> I can login fine with the users in my ModelsBackend but I can't login
> when using my LDAP credentials.
>
>
> If I do it the "manual" way, it seems to work:
>
>>>> import ldap
>>>> conn = ldap.initialize("ldap://myldapserver")
>>>> conn.simple_bind("uid=FOOBAR,ou=People,o=TEST", "PASSWORD")
>>>> 1
>
>
> Is there something I'm missing? Any help is appreciated.
>
> Thanks!
> Nick
>
>

Di majo

unread,
May 12, 2024, 3:34:16 PM5/12/24
to django-auth-ldap
MT103/202 DIRECT WIRE TRANSFER
PAYPAL TRANSFER
CASHAPP TRANSFER
ZELLE TRANSFER
LOAN DEAL
TRANSFER WISE
WESTERN UNION TRANSFER
BITCOIN FLASHING
BANK ACCOUNT LOADING/FLASHING
IBAN TO IBAN TRANSFER
MONEYGRAM TRANSFER
IPIP/DTC
SLBC PROVIDER
CREDIT CARD TOP UP
DUMPS/ PINS
SEPA TRANSFER
WIRE TRANSFER
BITCOIN TOP UP
GLOBALPAY INC US
SKRILL USA
UNIONPAY RECEIVER

Thanks.


NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT.

DM ME ON WHATSAPP
+44 7529 555638

Reply all
Reply to author
Forward
0 new messages