I try to program a Report which should create Windows Access automaticly by copieng an existing User. Now I think i have an Problem with the SID. IT would be great if anybody can tell me how I can get these identifieres.
create a new form and take a look of the special tables numbered : 2000000002 and counting up. There uou will find all about SID's, sessions and logins.
Try like this:
IF NOT DatabaseLogin.GET("Windows Login") THEN BEGIN
SIDConversion.SETCURRENTKEY(ID);
SIDConversion.ID := "Windows Login";
IF NOT SIDConversion.FIND THEN
ERROR('Something');
tSID := SIDConversion.SID;
END;
(SIDConverions is table "SID - Account ID". this is table ID 2000000055)
In my case "Windows Login" is a text like DOMAIN_NAME\USERID and it works.
I try to program a Report which should create Windows Access automaticly by copieng an existing User. Now I think i have an Problem with the SID. IT would be great if anybody can tell me how I can get these identifieres.
Comments
create a new form and take a look of the special tables numbered : 2000000002 and counting up. There uou will find all about SID's, sessions and logins.
Regards,
Ole
IF NOT DatabaseLogin.GET("Windows Login") THEN BEGIN
SIDConversion.SETCURRENTKEY(ID);
SIDConversion.ID := "Windows Login";
IF NOT SIDConversion.FIND THEN
ERROR('Something');
tSID := SIDConversion.SID;
END;
(SIDConverions is table "SID - Account ID". this is table ID 2000000055)
In my case "Windows Login" is a text like DOMAIN_NAME\USERID and it works.
Best regards,
Viktor.