Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
Samba::SIDhelper(3) User Contributed Perl Documentation Samba::SIDhelper(3)

Samba::SIDhelper - Create SIDs based on G/UIDs.

Version 0.0.0

    use Samba::SIDhelper;
    my $sidhelper = Samba::SIDhelper->new({sid=>'S-1-5-21-1234-56789-10111213'});
    my $sid=$sidhelper->uid2sid('1002');
    if ($sidhelper){
        print "Error!\n";
    if ($sidhelper){
        print "Error!\n";

args hash
If this is specified, this base SID will be used instead of trying to automatically figure out what to use.
If this is set to 1, it will try to use get the domain SID instead of the local SID.
    my $sidhelper->new({sid=>'S-1-5-21-1234-56789-10111213'});
        print "Error!\n";

Convert a UID to SID.
   my $sid=$sidhelper->uid2sid('1002');
   if ($sidhelper){
       print "Error!\n";

Convert a GID to SID.
   my $sid=$sidhelper->gid2sid('1002');
   if ($sidhelper){
       print "Error!\n";

This is a internal function and should not be called.

"net getdomainsid" exited with a non-zero.

"net getlocalsid" exited with a non-zero.

No UID specified.

No UID specified.

Non-numeric value for UID or GID.

This requires Samba to be installed. The command net is used, which requires this being ran as root.

This uses the method from smbldap-tools.
This method means both both user and group info is can be stored in the same space. Groups are always odd, while users are always even.

Zane C. Bowers, "<vvelox at>"

Please report any bugs or feature requests to "bug-samba-sidhelper at", or through the web interface at <>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
    perldoc Samba::SIDhelper
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN

Copyright 2009 Zane C. Bowers, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2009-09-12 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.