F1.AttributeName := ('userPassword');
F1.Values['userPassword'] := Edit4.Text ;
F1.AttributeName := ('passwordExpirationTime');
F1.Values['passwordExpirationTime'] := ('20060531230000Z') ;
ldap.Modify(Edit3.Text,MO_Replace,F1);
Even though the expire time reads out as I put it in the above code, it is never accepted. I get a syntax violation error ?
Also the developer documentation for a user changing his/her own password via LDAP says you have to delete the current password and add the new password as a value BUT it must be done in the same atomic operation. In other words, only one modify operation is issued, both the delete and add operation are contained in the single modify operation. I'm guessing we can't do that via this API or is there a way?
Thanks so much!!
Lukas Gebauer <[EMAIL PROTECTED]> wrote:
> I got to this point on trying to modify an attribute but lost it at
> adding the value (am I close or way way off?) Thanks in advance for
> any help!!!
TLdapAttribute is impelmented as modified TStringList. Each string in
this stringlist is one value of attribute. (one attribute under one
name can have set of values.) TLDAPAttribute class adding handling of
binary attributes and adding property with Attribute name.
So, adding value to TLdapAttribute is easy:
F1.AttributeName := ('passwordMinimumLength');
F1.Add('5');
ldap.Modify(Edit3.Text,MO_Replace,F1);
--
Lukas Gebauer.
E-mail: [EMAIL PROTECTED]
http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public
