Template Configuration

13 views
Skip to first unread message

Lakshman

unread,
Dec 22, 2010, 4:26:12 AM12/22/10
to django-auth-ldap
Hi,

I am getting a "Invalid credentials" on trying to authenticate from
the LDAP server, altho' the supplied credentials are right.

I imagine the problem is something to do with the non-default
directory and the name setting.

I login via the OWA as `companyname/firstname.lastname`.

I am using the default, supplied template

AUTH_LDAP_BIND_DN = 'twik...@companyname.com'
AUTH_LDAP_USER_SEARCH = LDAPSearch("ou=users,dc=companyname,dc=com",

ldap.SCOPE_SUBTREE, "(uid=%(user)s)")

Is there any change I need to make for it work for this directory
structure. Is there a quick test I can do using the Python LDAP that
this uses, to verify which template setting should work right.

Regards,

Jeff Schroeder

unread,
Dec 22, 2010, 8:10:35 AM12/22/10
to django-a...@googlegroups.com
On Wed, Dec 22, 2010 at 1:26 AM, Lakshman <scorp...@gmail.com> wrote:
> Hi,
>
> I am getting a "Invalid credentials" on trying to authenticate from
> the LDAP server, altho' the supplied credentials are right.
>
> I imagine the problem is something to do with the non-default
> directory and the name setting.
>
> I login via the OWA as `companyname/firstname.lastname`.

Ok so I take it you are using

> I am using the default, supplied template
>
> AUTH_LDAP_BIND_DN = 'twik...@companyname.com'

That is an email, not a dn. Try using the full dn, not the email of
twikiuser. Example might be:
uid=twikiuser,ou=System Accounts,ou=users,dc=company,dc=com

Use ldapsearch or an ldap directory browser to find the right dn, but
the above AUTH_LDAP_BIND_DN looks wrong to me, unless you login with a
username of:
twik...@companyname.com

> AUTH_LDAP_USER_SEARCH = LDAPSearch("ou=users,dc=companyname,dc=com",
>
> ldap.SCOPE_SUBTREE, "(uid=%(user)s)")
>
> Is there any change I need to make for it work for this directory
> structure. Is there a quick test I can do using the Python LDAP that
> this uses, to verify which template setting should work right.
>
> Regards,
>
>

--
Jeff Schroeder

Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com

Lakshman Prasad

unread,
Dec 22, 2010, 2:57:33 PM12/22/10
to django-a...@googlegroups.com
Hi Jeff,

Thanks for the response. My bad. I had to use the right DN template.

I see that you have included a relevant example: uid=twikiuser,ou=System Accounts,ou=users,dc=company,dc=com

How do I find out exactly what template I need to use using the LDAP directory browser? I am sorry, I understand that this should be trivial, but my google foo is not helping me place it, and I don't really understand Active Directory.

Thanks in advance.

Di majo

unread,
May 12, 2024, 3:45:12 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