Hi ALL:
I noticed Navision SID look like this: S-1-5-21-2493456750-3156789078-112345177-1345
and SQL Server SID look like this: 0x0105000000000005150000007A3B9DD049123450BDFBE7A8B0060000
Please advise how to convert Navision SID to match with SQL Server SID.
Thanks
vua
PS: I need to drop some users, and I found them in Navision windows login, but I could not them in SQL server users. This is strange.
0
Comments
Can someone give little hint ?
RIS Plus, LLC
Maybe you can try with these two Windows APIs (little C++ prog.):):
int ConvertSidToStringSid(SID *sid, char **stringsid);
int ConvertStringSidToSid(char *stringsid, SID **sid);
Regards,
Amer
To get Navision SID, I query from a table created by Navision called "Window Users"
To get SQL SID, I query from SQL Server system tables called sysusers
These two SIDs should be the same, but the problem is SQL Server stored as one format and Navision stored as another format.
So if we master these SIDs, then we can control users from either Navision, or SQL Server.
Cheers,
vua
Hi Amer,
We don't really need to convert it to string because it is already string.
.
RIS Plus, LLC
Hi DenSter,
Sessions table and is just a collection of data from SQL Server system tables: sysprocess, sysdatabase, syslockinfo.
Well ... I am almost get to the solution... [I said almost] ....
Basically, I query data from table "window login" and get the SID, and write a VB script to find out the login name. Then voila... I got the user name map to the sid. =D>
Now I found another interesting that is in Navision: click on Tools, Security, Windows Login, I saw a user. But then I could not find this user in the table "windows login"
So the question is: In Navision when you create a new user, where does it store beside SQL Server system tables? Does Navision store all users in its table, and if so do you know what is the table name?
thanks
vua
HI bbrown,
The SID in Navision is included domain name and login name. Thanks for your comment.
Now the question is:
Where is the data from windows login coming from? Do you know the table name?
To see the data from windows login, click on Tools -> Security -> Windows login
RIS Plus, LLC