[Bug 549177] New: broken YaST script for automatically creating a machine account when joining a Windows system to the domain
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=549177 Summary: broken YaST script for automatically creating a machine account when joining a Windows system to the domain Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: SLES 11 Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: danielstefanmader@web.de QAContact: jsrain@novell.com Found By: --- Created an attachment (id=323710) --> (http://bugzilla.novell.com/attachment.cgi?id=323710) /usr/share/YaST2/data/add_machine.ycp which has worked until a few weeks ago User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Mandriva Linux/1.9.1.3-2mdv2010.0 (2010.0) Firefox/3.5.3 For some weeks now we have observed that the script which is used to automatically created a machine account in the LDAP backend is broken. Previously, it sufficed to use the corresponding dialog in Windows in order to join the system to the domain. Now, we have to add a machine account manually. Our configuration /etc/samba/smb.conf holds [global] add machine script = /sbin/yast /usr/share/YaST2/data/add_machine.ycp %m$ I will attach the script. Following is the machine template which we adapt (ie. find a free uidNumber and set the sambaSID accordingly uid*2+1000) and then add with ldapadd -x -h localhost -D "cn=moadmin,dc=micro-optics,dc=uni" -W -f hostnameuidNumber.ldif dn: uid=sancerre$,ou=rechner,dc=micro-optics,dc=uni cn: sancerre$ gidNumber: 100 givenName: Machine homeDirectory: /var/lib/nobody loginShell: /bin/false objectClass: top objectClass: posixAccount objectClass: shadowAccount objectClass: inetOrgPerson objectClass: sambaSamAccount shadowInactive: -1 shadowLastChange: 13535 shadowMax: 99999 shadowMin: 0 shadowWarning: 7 sn: Machine uid: sancerre$ uidNumber: 10009 userPassword:: e2NyeXB0fUxGZmM2QU1KcC5vZU0= sambaSID: S-1-5-21-3361771276-136317063-72420017-21018 sambaPrimaryGroupSID: S-1-5-21-3361771276-136317063-72420017-1201 displayName: sancerre$ sambaAcctFlags: [W ] sambaLMPassword: 7E86C6E4348D3E93DF128B2DD32BAD07 sambaNTPassword: E3F9606AA9F4FC27F1381721445283B0 sambaPwdLastSet: 1254412980 Reproducible: Always Steps to Reproduce: 1. Use the windows dialog for domain joining for a machine which does not yet have a machine account 2. Try to join. This fails (username not found) 3. Add a machine account manually on the server and then try again. Now it works. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=549177
zhu rensheng
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=549177
User jsuchome@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=549177#c1
--- Comment #1 from Jiří Suchomel
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=549177
User danielstefanmader@web.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=549177#c2
--- Comment #2 from Daniel Mader
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=549177
User danielstefanmader@web.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=549177#c3
--- Comment #3 from Daniel Mader
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.novell.com/show_bug.cgi?id=549177
User jsuchome@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=549177#c4
Jiří Suchomel
participants (1)
-
bugzilla_noreply@novell.com