Yep, I did post this to the perl archives earlier.  After a little search on
Win32::Perms...
This should be what you need :)

---------------------------------------------
> #!perl 
> 
> use Win32::Perms; 
> $username=Win32::Perms::ResolveAccount('S-1-5-21-3725260815-71594873-113 
> 1426265-1002'); 
> print "User: $username\n"; 
---------------------------------------------

Hope this helps.

Scott Campbell
Senior Software Developer
Somix Technologies
(207) 324-8805
http://www.somix.com


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Colin
Eric Johnson
Sent: Thursday, February 06, 2003 6:18 PM
To: [EMAIL PROTECTED]
Subject: Human readable SIDs & GIDs



I feel like a complete knucklehead for asking this as I could swear I saw
something about it go over the list a little while ago. But for the life of
me I can't find it so here goes.

I'd like to be able to convert both the SID and GID (objectSid and
objectGid) from the binary form that AD stores them in into the readable
forms (S-xxx-). Is there a simple way to do this?

Feel free to just point me at the subject for the thread that may have just
covered this and I will go away quietly ;-)

Colin J.

_______________________________________________
Perl-Win32-Admin mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to