Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[Samba] Manual creation of machine account in LDAP

 
   Soft32 Home -> Linux -> Samba RSS
Next:  [PATCH resend] misc: remove MAC pmu function decl..  
Author Message
M. Rodrigo Monteiro

External


Since: Oct 16, 2009
Posts: 2



(Msg. 1) Posted: Fri Oct 30, 2009 3:20 pm
Post subject: [Samba] Manual creation of machine account in LDAP
Archived from groups: linux>samba (more info?)

Hi all!

I wanna know how to create the LDIF to import in OpenLDAP to create a
machine account.
Anyone can help?

Regards,
Rodrigo.

--
M. Rodrigo Monteiro
falecom.TakeThisOut@rodrigomonteiro.net
"Free as in Freedom, not free as in free beer"
"As we are liberated from our own fear, our presence automatically
liberates others"
Linux User # 403730
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Gaiseric Vandal

External


Since: Oct 12, 2009
Posts: 7



(Msg. 2) Posted: Fri Oct 30, 2009 5:20 pm
Post subject: Re: [Samba] Manual creation of machine account in LDAP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 10/30/09 15:33, M. Rodrigo Monteiro wrote:
> Hi all!
>
> I wanna know how to create the LDIF to import in OpenLDAP to create a
> machine account.
> Anyone can help?
>
> Regards,
> Rodrigo.
>
>

In my environment, people and machines have preexisting "unix" accounts
in ldap, since we also have linux network clients. Samba does not
automatically create the unix accounts.

You only need a basic "unix person" account. It can be in the same OU
as actual people or in a sub-ou- but typically (at least with my
setup) it needs to be where the underlying unix OS will find it (getent
passwd.) When an XP machine joins a domain (or if you create the samba
account with (smbpasswd -m -a MACHINE) the samba attributes get added.

E.g- basic "unix" account


dn: uid=MACHINE$,ou=machines,ou=people,o=mydomain.com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
cn: MACHINE$
displayName: MACHINE$
gecos: MACHINE$
gidNumber: 515
uid: MACHINE$
uidNumber: 567
userPassword:: *LK*


Following automatically gets added when the machine joins domain:


objectClass: shadowAccount
objectClass: sambaSamAccount
sambaAcctFlags: [W ]
sambaNTPassword: AD40F************************
sambaPrimaryGroupSID: S-1-**********************
sambaPwdLastSet: 1254523222
sambaSID: S-1--**********************






--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Samba] Manual creation of machine trust and comments on S.. - I just receive a copy of the official samba 3 howto, to be honest i'm rather disapoint with the content and layout. Wel...

[Samba] ldap backends separate samba user account and mach.. - Hi: I have setup a samba PDC with ldap backends. I don't want to mess my LDAP database with machine accounts, I use i...

[Samba] Create machine account samba 3 - can I delete mach.. - Hi, The idea is to avoid to have machines accounts in /etc/passwd and store all on the ldap. I must have a machine...

[Samba] samba3 + ldap pdbedit machine trust account problem - Please help, I am experiencing a weird error when trying to join a winXP Pro workstation to my samba3 + LDAP Domain. ....

[Samba] Samba 3.0 - LDAP create machine account fails - Hello, It's me again. I'm running Samba 3.0 and LDAP 2.1.23 on a RedHat 8.0 system. I am able to browse shares and..

[Samba] Samba 3.0 + LDAP userPassword -> sambaNTPassword m.. - First, the software: Samba 3.0.0 OpenLDAP 2.0.27 nssldap / pam_ldap Redhat 9 This may be more of a question for the..
       Soft32 Home -> Linux -> Samba All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]