Hi. Im a little Delphi programmer. Actually Im using the Synapse39 Lib to
make some good projects. One of this is a LDAP Client. Tell mi if this code
is correct to modify the cn attribute from the LDAP.
.
procedure
..
var
ldap: TLDAPSend;
attr: TLDAPAttribute;
begin
ldap:= TLDAPsend.Create;
attr := TLDAPAttribute.Create;
attr.AttributeName := 'mail';
attr.Add('someem...@subdomain.com');
try
ldap.TargetHost := 'UCIDC1.uci.cu';
ldap.UserName := 'user';
ldap.Password := 'password';
ldap.Login;
ldap.Bind;
ldap.Modify('objetc', MO_Replace, attr)
finally
ldap.Free;
attr.Free;
end;
.
I have a question here: On the Modify function, the first parameter, the
object to modify. What is this?. Tell me an Example of a valid objet to do
this.
Tanks from now. Fidel
.
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public