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