Re: [Samba] Adding a machine account to Samba PCD + LDAP?

2008-02-29 Thread Adam Williams
yes it needs to follow the (uid * 2) + 1000 format. yes I know mine is wrong, its a test lab system, I don't care. Kyle Schmitt wrote: Adam, thanks a ton for that. To further my curiosity, do you know if that last set of numbers (the 2006 calculated to 1000+(503*2) ) just needs to be

Re: [Samba] Adding a machine account to Samba PCD + LDAP?

2008-02-28 Thread Kyle Schmitt
Adam, thanks a ton for that. To further my curiosity, do you know if that last set of numbers (the 2006 calculated to 1000+(503*2) ) just needs to be unique, or if it needs to follow that pattern? Thanks, Kyle On Tue, Feb 26, 2008 at 12:45 PM, Adam Williams [EMAIL PROTECTED] wrote:

Re: [Samba] Adding a machine account to Samba PCD + LDAP?

2008-02-26 Thread Kyle Schmitt
Sadique, Thanks. That got me where I need I think. Now, to pester further, how does one determine a users sid if one were to manually generate an ldif to add samba users to ldap? In the meanwhile I'm digging through the docs, but to little avail. Thanks, Kyle -- To

Re: [Samba] Adding a machine account to Samba PCD + LDAP?

2008-02-26 Thread Sadique Puthen
Kyle Schmitt wrote: Sadique, Thanks. That got me where I need I think. Now, to pester further, how does one determine a users sid if one were to manually generate an ldif to add samba users to ldap? I use the below script to add a samba user to ldap database. #!/bin/bash

Re: [Samba] Adding a machine account to Samba PCD + LDAP?

2008-02-26 Thread Adam Williams
figure out your sid (net getdomainsid) then take the posix UID of the user, multiply it by 2, then add 1000. for example, the RID in my test lab for user with UID 503 is: S-1-5-21-2139886109-2393431639-217723040-2006 Kyle Schmitt wrote: Sadique, Thanks. That got me where I need

Re: [Samba] Adding a machine account to Samba PCD + LDAP?

2008-02-26 Thread Kyle Schmitt
It doesn't need sambaSamAccount as part of it's ldap entry? I thought it was needed. Or is it only needed if there is no corresponding unix account? --Kyle On Tue, Feb 26, 2008 at 11:50 AM, Sadique Puthen [EMAIL PROTECTED] wrote: Kyle Schmitt wrote: Sadique, Thanks. That got

Re: [Samba] Adding a machine account to Samba PCD + LDAP?

2008-02-26 Thread Sadique Puthen
Kyle Schmitt wrote: It doesn't need sambaSamAccount as part of it's ldap entry? Yes, it need that objectClass. As I said, when you do smbpasswd -a username, all those entries would get automatically added to ldap database. --Sadique I thought it was needed. Or is it only needed if

Re: [Samba] Adding a machine account to Samba PCD + LDAP?

2008-02-23 Thread Sadique Puthen
Kyle Schmitt wrote: How does one go about adding a machine account, or even a normal samba account, on a Samba PDC with LDAP back end? I wanted to avoid using something like smbldap-useradd, because I want to actually understand what's going on. I'm assuming it's just some sort of small ldif

[Samba] Adding a machine account to Samba PCD + LDAP?

2008-02-22 Thread Kyle Schmitt
How does one go about adding a machine account, or even a normal samba account, on a Samba PDC with LDAP back end? I wanted to avoid using something like smbldap-useradd, because I want to actually understand what's going on. I'm assuming it's just some sort of small ldif to add, like I would