[Samba] Joining ubuntu client to samba domain

snowman5840 snowman5840 at t-online.de
Wed Oct 20 23:42:46 MDT 2010


Hi

I have installed a smba pdc with openLDAP. With windows clients i can use it
without problems (join the domain, login with users ....). But i can't join
the domain with my ubuntu client 10.04.

I have try this to join: sudo net join -W firma1 -U administrator

but i get the following error: cannot join as standalone machine.

smb.conf:
[global]
 # Domain name ..        
 workgroup = firma1        
 # Server name - as seen by Windows PCs ..        
 netbios name = ldap        
 # Be a PDC ..        
 domain logons = Yes        
 domain master = Yes        
 # Be a WINS server ..        
 wins support = true         
security = domain
  obey pam restrictions = Yes        
 dns proxy = No        
 os level = 35        
 log file = /var/log/samba/log.%m        
 max log size = 1000        
 syslog = 0        
 panic action = /usr/share/samba/panic-action %d        
 pam password change = Yes         

  # Allows users on WinXP PCs to change their password when they press
Ctrl-Alt-Del
 unix password sync = no        
 ldap passwd sync = yes         

  # Printing from PCs will go via CUPS ..        
 load printers = yes        
 printing = cups        
 printcap name = cups         

  # Use LDAP for Samba user accounts and groups ..        
 passdb backend = ldapsam:ldap://localhost         

  # This must match init.ldif ..        
 ldap suffix = dc=firma1,dc=de        
 # The password for cn=admin MUST be stored in /etc/samba/secrets.tdb        
 # This is done by running 'sudo smbpasswd -w'.        
 ldap admin dn = cn=admin,dc=firma1,dc=de         

  # 4 OUs that Samba uses when creating user accounts, computer accounts,
etc.        
 # (Because we are using smbldap-tools, call them 'Users', 'Computers',
etc.)        
 ldap machine suffix = ou=Computers        
 ldap user suffix = ou=Users        
 ldap group suffix = ou=Groups        
 ldap idmap suffix = ou=Idmap        
 # Samba and LDAP server are on the same server in this firma1.        
 ldap ssl = no         

  # Scripts for Samba to use if it creates users, groups, etc.        
 add user script = /usr/sbin/smbldap-useradd -m '%u'        
 delete user script = /usr/sbin/smbldap-userdel %u        
 add group script = /usr/sbin/smbldap-groupadd -p '%g'        
 delete group script = /usr/sbin/smbldap-groupdel '%g'        
 add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'        
 delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'        
 set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'         

  # Script that Samba users when a PC joins the domain .. 
        # (when changing 'Computer Properties' on the PC)
add machine script = /usr/sbin/smbldap-useradd -w '%u' 

  # Values used when a new user is created ..        
 # (Note: '%L' does not work properly with smbldap-tools 0.9.4-1)    
 logon drive =        
 logon home =        
 logon path = 
        logon script =          

  # This is required for Windows XP client .. 
        server signing = auto        
 server schannel = Auto 
 
[homes]        
 comment = Home Directories        
 valid users = %S 
 read only = No        
 browseable = No 
 [netlogon]        
comment = Network Logon Service 
 path = /var/lib/samba/netlogon        
 admin users = root        
 guest ok = Yes        
 browseable = No 
 
[Profiles]        
comment = Roaming Profile Share            
path = /var/lib/samba/profiles        
read only = No        profile 
acls = Yes 
browsable = No 
 



-- 
View this message in context: http://samba.2283325.n4.nabble.com/Joining-ubuntu-client-to-samba-domain-tp3005055p3005055.html
Sent from the Samba - General mailing list archive at Nabble.com.


More information about the samba mailing list