Vitality, Thanks for your support. actually, an user adder plugin is what I've done... and it is also what I didn't want to do :P
after all this is better. Now I have a full control over the registration process. PloneFormController... you'll be always in my heart. RIP ;) bye 2011/4/14 Vitaliy Podoba <[email protected]> > In article <[email protected]>, > SauZheR <[email protected]> wrote: > > > Hi there. > > These are 7 loc in Products.PloneLDAP/mixin/useradder.py > > > > 1 # Evil: grab all schema attributes and will them with a default > > 2 # text. This is needed to be able to create LDAP entries where > > 3 # attributes besides uid, login and rdn are required. > > 4 for (key,name) in acl.getLDAPSchema(): > > 5 if key not in attrs: > > 6 attrs[key]="unset" > > 7 res=acl.manage_addUser(kwargs=attrs) > > > > There is an _integer_ ldap attribute in schema definition for which > "unset" > > is rejected by lower tier cause it is obviously a string. > > > > any suggestions? > > Hi, > > While doing client's project I had the same issue as had to maintain > users with a bunch of extra ldap properties of different data types. For > this I developed enhanced ldap plugin which did all data type conversion > between python data types and ldap attribute syntaxes. > > Here is just a quick extraction of that client project's code I made a > while ago. Not sure if it'll work w/o any issues for you. At least it'll > give you an idea on how to do data type conversions. > > Actually I'm planning to make a full-featured release of these > enhancements. But it won't be within the next couple of months > unfortunately as I don't have enough time for this yet. > > Another option could be bda.ldap approach to integrate ldap with plone, > but I'm not sure about it's state. Half a year ago it was in a > development mode yet. > > Cheers, > Vitaliy Podoba > > _______________________________________________ > Product-Developers mailing list > [email protected] > https://lists.plone.org/mailman/listinfo/product-developers > -- bye SauZheR ************************************ l'iterazione รจ umana... la ricorsione, Divina! ************************************ reply to: sauzher AT gmail DOT com
_______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/product-developers
