ldapauthlib.pas.~3~

来自「Delphi LDAP Authentication Component de」· ~3~ 代码 · 共 42 行

~3~
42
字号
unit ldapauthlib;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ldapclasses, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Memo1: TMemo;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
  LDAPSession:TLDAPSession;
  LDAPEntryList:TLDAPEntryList;
  SearchCallBack:TSearchCallback;
implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
     LDAPSession := TLDAPSession.Create;
     LDAPEntryList := TLDAPEntryList.create;


     LDAPSession.Server := '192.168.2.4';
     LDAPSession.Base := 'dc=freemeg,dc=com';
     LDAPSession.Version := 3;
//     LDAPSession.Search('','dc=freemeg.com',0,'uid',0,LdapEntryList,SearchCallBack);
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?