📄 ldapauthlib.pas.~3~
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -