Re: [Samba] net getlocalsid: is this a bug?

2009-01-02 Thread Miguel Medalha

That was not my question. Read my message again, please.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] net getlocalsid: is this a bug?

2009-01-02 Thread Kai Blin
On Friday 02 January 2009 09:13:53 Miguel Medalha wrote:
 That was not my question. Read my message again, please.

Right. The answer actually is You didn't read the help text 
to 'getlocalsid'. I don't know which Samba version you're running, but in 
the v3-3-test tree, the help text for net getlocalsid says Get the SID for 
the local domain. The local domain for member servers is different from the 
domain a member server is joined to, but for a PDC, it's the same. 
Technically, you're always looking at domain SIDs here, so the output of net 
does just the right thing.

Kai

-- 
Kai Blin
WorldForge developer  http://www.worldforge.org/
Wine developerhttp://wiki.winehq.org/KaiBlin
Samba team member http://www.samba.org/samba/team/
--
Will code for cotton.


signature.asc
Description: This is a digitally signed message part.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] net getlocalsid: is this a bug?

2009-01-02 Thread Miguel Medalha


Right. The answer actually is You didn't read the help text 
to 'getlocalsid'. I don't know which Samba version you're running, but in 
the v3-3-test tree, the help text for net getlocalsid says Get the SID for 
the local domain. The local domain for member servers is different from the 
domain a member server is joined to, but for a PDC, it's the same. 
Technically, you're always looking at domain SIDs here, so the output of net 
does just the right thing.
  

Thank you for your answer.
In fact, I did read the man page and the online help, and they both 
confirm my question. I am using Samba 3.2.6 on CentOS 5.2.


The man page says the following:


GETLOCALSID [DOMAIN]
Prints the SID of the specified domain, or if the parameter is omitted, 
the SID of the local server.




*If the parameter is omitted* it prints the SID of the local server.

If you invoke the net command without parameters, the online help states:


Usage:
net getlocalsid [NAME]to get the SID for local machine name



In sum, it seems to me that, for the sake of consistency and to avoid 
confusion, the output from getlocalsid without parameter should be 
SID for local machine (...).
According to what you say, perhaps this has already been changed for 
version 3.3...


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] net getlocalsid: is this a bug?

2009-01-01 Thread Miguel Medalha

I noticed the following:

Suppose that we have a server called SMALLSERVER working as a PDC for 
SMALLDOMAIN**.


When I enter net getlocalsid I get the following output:

   SID for domain SMALLSERVER is: S-1-5-21-x-x-x

But when I enter net getdomainsid I get:

   SID for local machine SMALLSERVER is: 
S-1-5-21-x-x-x

   SID for domain SMALLDOMAIN is: S-1-5-21--x-x-x

Is this a bug or is it by design? It is somewhat confusing. Shouldn't 
the output of net getlocalsid be SID for *local machine* SMALLSERVER 
instead of SID for domain SMALLSERVER?


Maybe I am being picky but that got me confused for a while when trying 
to debug a malfunctioning server...


Thank you!
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] net getlocalsid: is this a bug?

2009-01-01 Thread Kai Blin
On Friday 02 January 2009 05:16:29 Miguel Medalha wrote:
 I noticed the following:

 Suppose that we have a server called SMALLSERVER working as a PDC for
 SMALLDOMAIN**.

 When I enter net getlocalsid I get the following output:

 SID for domain SMALLSERVER is: S-1-5-21-x-x-x

 But when I enter net getdomainsid I get:

 SID for local machine SMALLSERVER is:
 S-1-5-21-x-x-x
 SID for domain SMALLDOMAIN is: S-1-5-21--x-x-x

 Is this a bug or is it by design? It is somewhat confusing. Shouldn't
 the output of net getlocalsid be SID for *local machine* SMALLSERVER
 instead of SID for domain SMALLSERVER?

 Maybe I am being picky but that got me confused for a while when trying
 to debug a malfunctioning server...

IIRC the domain's SID is the SID of the domain's PDC, for NT4 style domains.

Cheers,
Kai

-- 
Kai Blin
WorldForge developer  http://www.worldforge.org/
Wine developerhttp://wiki.winehq.org/KaiBlin
Samba team member http://www.samba.org/samba/team/
--
Will code for cotton.


signature.asc
Description: This is a digitally signed message part.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba