TLDAPAttribute.Add fix
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@191 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
parent
bb1fb625b4
commit
1632b8b604
13
ldapsend.pas
13
ldapsend.pas
@ -1,9 +1,9 @@
|
|||||||
{==============================================================================|
|
{==============================================================================|
|
||||||
| Project : Ararat Synapse | 001.007.000 |
|
| Project : Ararat Synapse | 001.007.001 |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Content: LDAP client |
|
| Content: LDAP client |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Copyright (c)1999-2010, Lukas Gebauer |
|
| Copyright (c)1999-2014, Lukas Gebauer |
|
||||||
| All rights reserved. |
|
| All rights reserved. |
|
||||||
| |
|
| |
|
||||||
| Redistribution and use in source and binary forms, with or without |
|
| Redistribution and use in source and binary forms, with or without |
|
||||||
@ -33,7 +33,7 @@
|
|||||||
| DAMAGE. |
|
| DAMAGE. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
||||||
| Portions created by Lukas Gebauer are Copyright (c)2003-2010. |
|
| Portions created by Lukas Gebauer are Copyright (c)2003-2014. |
|
||||||
| All Rights Reserved. |
|
| All Rights Reserved. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Contributor(s): |
|
| Contributor(s): |
|
||||||
@ -104,6 +104,8 @@ type
|
|||||||
function Get(Index: integer): string; override;
|
function Get(Index: integer): string; override;
|
||||||
procedure Put(Index: integer; const Value: string); override;
|
procedure Put(Index: integer; const Value: string); override;
|
||||||
procedure SetAttributeName(Value: AnsiString);
|
procedure SetAttributeName(Value: AnsiString);
|
||||||
|
public
|
||||||
|
function Add(const S: string): Integer; override;
|
||||||
published
|
published
|
||||||
{:Name of LDAP attribute.}
|
{:Name of LDAP attribute.}
|
||||||
property AttributeName: AnsiString read FAttributeName Write SetAttributeName;
|
property AttributeName: AnsiString read FAttributeName Write SetAttributeName;
|
||||||
@ -351,6 +353,11 @@ function LDAPResultDump(const Value: TLDAPResultList): AnsiString;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
{==============================================================================}
|
{==============================================================================}
|
||||||
|
function TLDAPAttribute.Add(const S: string): Integer;
|
||||||
|
begin
|
||||||
|
Put(inherited Add(''), S);
|
||||||
|
end;
|
||||||
|
|
||||||
function TLDAPAttribute.Get(Index: integer): string;
|
function TLDAPAttribute.Get(Index: integer): string;
|
||||||
begin
|
begin
|
||||||
Result := inherited Get(Index);
|
Result := inherited Get(Index);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user