Re: [Samba] samba machine accounts problem

2009-04-17 Thread Ray Klassen

 only ou=users, need i a second one for hosts? can i do this belated?



yes to (1) and I think yes to (2)...
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba machine accounts problem

2009-04-16 Thread Adam Williams

is nss_ldap configured to search for posix accounts in ou=hosts?

Sven Buchstaller wrote:

Hi list

samba3-3.0.31-36
openldap2-2.3.43-1.1

my problem is i have stop my working openldap and restart it again, in
the Log i see now = pdb_get_group_sid: Failed to find Unix account
for ... a lot of machine accounts.
Whats wrong? i must now all accounts rejoin to domain? 


example from a host

# bart$, hosts, server.intern
dn: uid=bart$,ou=hosts,dc=server,dc=intern
objectClass: sambaSamAccount
objectClass: posixAccount---unix account ?
objectClass: account
sambaDomainName: srv01
displayName: bart
sambaPrimaryGroupSID: S-1-5-21-3991578539-3149662252-1894531253-515
sambaSID: S-1-5-21-3991578539-3149662252-1894531253-101524
gidNumber: 515
loginShell: /bin/false
homeDirectory: /dev/null
uid: bart$
cn: bart
uidNumber: 50262
sambaPwdCanChange: 1196710001
sambaPwdMustChange: 1204486001
sambaAcctFlags: [WX ]
sambaPwdLastSet: 1238649797

# search result
search: 2
result: 0 Success




mfg sven

  


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


Re: [Samba] samba machine accounts problem

2009-04-15 Thread Ray Klassen
/etc/ldap.conf

are you including a line like
nss_base_passwd ou=hosts,dc=server,dc=intern?one

/etc/nsswitch.conf

does it include the following?

passwd: files ldap
shadow: files ldap
group:  files ldap

This is how machine accounts in ldap become 'unix accounts' or that's
the way I do it...


On Tue, Apr 14, 2009 at 11:31 PM, Sven Buchstaller a...@quickline.de wrote:
 Hi list

 samba3-3.0.31-36
 openldap2-2.3.43-1.1

 my problem is i have stop my working openldap and restart it again, in
 the Log i see now = pdb_get_group_sid: Failed to find Unix account
 for ... a lot of machine accounts.
 Whats wrong? i must now all accounts rejoin to domain?

 example from a host

 # bart$, hosts, server.intern
 dn: uid=bart$,ou=hosts,dc=server,dc=intern
 objectClass: sambaSamAccount
 objectClass: posixAccount                ---unix account ?
 objectClass: account
 sambaDomainName: srv01
 displayName: bart
 sambaPrimaryGroupSID: S-1-5-21-3991578539-3149662252-1894531253-515
 sambaSID: S-1-5-21-3991578539-3149662252-1894531253-101524
 gidNumber: 515
 loginShell: /bin/false
 homeDirectory: /dev/null
 uid: bart$
 cn: bart
 uidNumber: 50262
 sambaPwdCanChange: 1196710001
 sambaPwdMustChange: 1204486001
 sambaAcctFlags: [WX         ]
 sambaPwdLastSet: 1238649797

 # search result
 search: 2
 result: 0 Success




 mfg sven

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

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


Re: [Samba] samba machine accounts problem

2009-04-15 Thread Sven Buchstaller
Hi Ray

thx for helping, my config on opensuse 10.2

cat /etc/ldap.conf |grep nss_ |grep -v ^#

nss_initgroups_ignoreusers  root,ldap
nss_schema  rfc2307bis
nss_map_attribute   uniqueMember member
nss_base_passwd ou=users,dc=server,dc=intern
nss_base_shadow dc=server,dc=intern
nss_base_group  ou=groups,dc=server,dc=intern

cat /etc/nsswitch.conf

passwd: compat
group:  compat

hosts:  files dns
networks:   files dns

services:   files ldap
protocols:  files
rpc:files
ethers: files
netmasks:   files
netgroup:   files ldap
publickey:  files

bootparams: files
automount:  files nis
aliases:files ldap
passwd_compat:  ldap
group_compat:   ldap

only ou=users, need i a second one for hosts? can i do this belated?

 Weitergeleitete Nachricht 
Von: Ray Klassen rayklas...@gmail.com
An: Sven Buchstaller a...@quickline.de
Kopie: samba@lists.samba.org
Betreff: Re: [Samba] samba machine accounts problem
Datum: Wed, 15 Apr 2009 06:13:21 -0700

/etc/ldap.conf

are you including a line like
nss_base_passwd ou=hosts,dc=server,dc=intern?one

/etc/nsswitch.conf

does it include the following?

passwd: files ldap
shadow: files ldap
group:  files ldap

This is how machine accounts in ldap become 'unix accounts' or that's
the way I do it...


On Tue, Apr 14, 2009 at 11:31 PM, Sven Buchstaller a...@quickline.de wrote:
 Hi list

 samba3-3.0.31-36
 openldap2-2.3.43-1.1

 my problem is i have stop my working openldap and restart it again, in
 the Log i see now = pdb_get_group_sid: Failed to find Unix account
 for ... a lot of machine accounts.
 Whats wrong? i must now all accounts rejoin to domain?

 example from a host

 # bart$, hosts, server.intern
 dn: uid=bart$,ou=hosts,dc=server,dc=intern
 objectClass: sambaSamAccount
 objectClass: posixAccount---unix account ?
 objectClass: account
 sambaDomainName: srv01
 displayName: bart
 sambaPrimaryGroupSID: S-1-5-21-3991578539-3149662252-1894531253-515
 sambaSID: S-1-5-21-3991578539-3149662252-1894531253-101524
 gidNumber: 515
 loginShell: /bin/false
 homeDirectory: /dev/null
 uid: bart$
 cn: bart
 uidNumber: 50262
 sambaPwdCanChange: 1196710001
 sambaPwdMustChange: 1204486001
 sambaAcctFlags: [WX ]
 sambaPwdLastSet: 1238649797

 # search result
 search: 2
 result: 0 Success




 mfg sven

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


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