automatic Windows Access creation at Attain 3.70

remueremue Member Posts: 2
edited 2004-10-06 in Navision Attain
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.

René Müller

Comments

  • oleschjoetholeschjoeth Member Posts: 74
    Hi,

    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
  • VikVik Member Posts: 1
    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.

    Best regards,
    Viktor.
    remue wrote:
    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.

    René Müller
Sign In or Register to comment.