Django1.5 and how to handle additional fields

63 views
Skip to first unread message

michael...@fusepool.net

unread,
Apr 9, 2013, 1:46:33 PM4/9/13
to django-a...@googlegroups.com
After Django 1.5 is now released I was wondering if there are already any plans how to handle additional user fields with django-auth-ldap.

The current way to do this by using "AUTH_PROFILE_MODULE" will be not possible in some future:

Deprecated in Django 1.5: With the introduction of custom User models, the use of AUTH_PROFILE_MODULE to define a single profile model is no longer supported. See the Django 1.5 release notes for more information.

Does it already work if we substitute the user model with a custom one and add the new fields to the AUTH_LDAP_USER_ATTR_MAP? e.g.:

AUTH_LDAP_USER_ATTR_MAP = {"first_name": "givenName", "last_name": "sn", "uri": "labeledURI"

This would be one solution but not really handy if you like to extend a running system. So is the "AUTH_PROFILE_MODULE" still be the way to go in future for extended models?

Thanks for any ideas

Peter Sagerson

unread,
Apr 9, 2013, 1:54:40 PM4/9/13
to django-a...@googlegroups.com
AUTH_LDAP_USER_ATTR_MAP is a thin convenience setting that pulls values from the user's LDAP attributes and populates the Django user object using setattr(). It actually doesn't care whether you're assigning to model fields or not. You could use this to hang arbitrary properties off your user objects if you want, although it probably wouldn't be very useful.
> --
> You received this message because you are subscribed to the Google Groups "django-auth-ldap" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-auth-ld...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Di majo

unread,
May 12, 2024, 2:00:04 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