Marcio Oli
2013-Mar-15 21:09 UTC
[Samba] There are no currently logon servers available when mapping with "net use"
Hi people, I have a problem and I need so much of your help. I have a login script in \\server1\netlogon\script.bat (on my PDC and BDC) that runs "net use" commands to map some shares in time of the logon. This login tries to map share in another server (samba member of domain \\server2). So, I put the result at a log and appears these lines: " System error 1311 has occurred. There are currently no logon servers available to service the logon request. " This is a recurrent problem, but neither always this happens. Sometimes, everything is wonderful and works very well mapping all shares, but is unstable. Follow my confs: ---------------------------------------------------------------------------------------------------------------------------------------- My pdc's smb.conf (Local IP: 10.0.0.224): " [global] dos charset = 850 unix charset = ISO8859-1 workgroup = MyDomain netbios name = pdc-name server string = PDC Sede 2 Dominio security = user smb ports = 139 445 name resolve order = lmhosts wins host bcast map to guest = Bad User passdb backend = ldapsam:ldap://ldap.server.br unix password sync = No log level = 1 syslog = 1 log file = /var/log/samba/log.%U max log size = 20000 time server = Yes deadtime = 10 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" 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" add machine script = /usr/sbin/smbldap-useradd -t 0 -w "%u" rename user script = /usr/sbin/smbldap-usermod -r "%unew" "%uold" logon script = %G-sede2.bat logon path logon home logon drive os level = 255 domain logons = Yes preferred master = Yes domain master = Yes local master = Yes wins support = Yes dns proxy = yes ldap admin dn = cn=root ldap group suffix = ou=grupos ldap machine suffix = ou=computadores ldap suffix = O=MPT,C=BR ldap ssl = no ldap user suffix = ou=usuarios create mask = 0640 directory mask = 0750 nt acl support = No case sensitive = No dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd # Habilitar Auditoria: vfs objects = full_audit #full_audit:success = open, opendir, write, unlink, rename, mkdir, rmdir, chmod, chown full_audit:success = open, write, unlink, rename, mkdir, rmdir, chmod, chown full_audit:prefix = %u|%I|%S full_audit:failure = none full_audit:facility = local5 full_audit:priority = notice [netlogon] path = /home/netlogon/ browseable = No writeable = Yes admin users = @"MyDomain\netlogon" " ---------------------------------------------------------------------------------------------------------------------------------------- My bdc's smb.conf (Local IP: 10.0.0.225): " [global] dos charset = 850 unix charset = ISO8859-1 workgroup = MyDomain netbios name = bdc-sede2 server string = BDC Sede 2 Dominio security = user smb ports = 139 445 name resolve order = lmhosts wins host bcast map to guest = Bad User passdb backend = ldapsam:ldap://ldap.sever.br unix password sync = No log level = 1 syslog = 1 log file = /var/log/samba/log.%U max log size = 20000 time server = Yes deadtime = 10 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" 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" add machine script = /usr/sbin/smbldap-useradd -t 0 -w "%u" rename user script = /usr/sbin/smbldap-usermod -r "%unew" "%uold" logon script = %G-sede2.bat logon path logon home logon drive os level = 253 domain logons = Yes domain master = No local master = No wins support = no wins server = 10.0.0.224 dns proxy = no ldap admin dn = cn=root ldap group suffix = ou=grupos ldap machine suffix = ou=computadores ldap suffix = O=MPT,C=BR ldap ssl = no ldap user suffix = ou=usuarios create mask = 0640 directory mask = 0750 nt acl support = No case sensitive = No dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd # Habilitar Auditoria: vfs objects = full_audit #full_audit:success = open, opendir, write, unlink, rename, mkdir, rmdir, chmod, chown full_audit:success = open, write, unlink, rename, mkdir, rmdir, chmod, chown full_audit:prefix = %u|%I|%S full_audit:failure = none full_audit:facility = local5 full_audit:priority = notice [netlogon] path = /home/netlogon/ browseable = No writeable = No admin users = @"MyDomain\netlogon" " ---------------------------------------------------------------------------------------------------------------------------------------- My member of domain server2's smb.conf: " [global] workgroup = MyDomain server string = Servidor de Arquivos - Sede 2 security = DOMAIN obey pam restrictions = Yes log level = 1 log file = /var/log/samba/log.%U max log size = 20000 printcap name = cups os level = 20 domain logons = no preferred master = no domain master = No local master = No wins support = no wins server = 10.0.0.224 registry shares = Yes idmap uid = 1000-20000 idmap gid = 1000-20000 template homedir = /home/%U template shell = /bin/bash winbind enum users = Yes winbind enum groups = Yes winbind use default domain = Yes # Habilitar Auditoria: vfs objects = full_audit, recycle #full_audit:success = open, opendir, write, unlink, rename, mkdir, rmdir, chmod, chown full_audit:success = open, write, unlink, rename, mkdir, rmdir, chmod, chown full_audit:prefix = %u|%I|%S full_audit:failure = none full_audit:facility = local5 full_audit:priority = notice #Lixeira de Rede recycle:facility = LOCAL1 recycle:priority = NOTICE recycle:maxsize = 104857600 recycle:minsize = 256 recycle:repository = .$networkRecycle/%U recycle:directory_mode = 0777 recycle:subdir_mode = 0777 recycle:keeptree = True recycle:touch = True recycle:touch_mtime = True recycle:versions = True recycle:noversions = *.pdf, *.jpg, *.gif, *.iso, *.jpeg, *.db, *.avi, *.bin, *.exe, *.mp3, *.mpg, *.wma, *.png, *.vob, *.wav, *.psd, *.psdx, *.nef, *.tif, *.vob, *.wmv, *.dwg, *.indd, *.cdr, *.eps recycle:exclude = *.tmp, *.temp, *.log, *.ldb, *.o, *.obj, *.bak, *.iso, *.vmdk recycle:exclude_dir = tmp, temp, cache # all shares listed/configured at bottom of .conf file ... " Anybody could help me please? I'm with many clients complaining about the service. I'm hopeful about answers. Thanks a lot, -- Marcio Oliveira. "Tudo concorre para o bem daqueles que amam ? Deus." (Rom 8,28)
TMason
2013-Mar-15 23:26 UTC
[Samba] There are no currently logon servers available when mappingwith "net use"
"Marcio Oli" wrote in message news:CANpJy9WD=CLxbB=BQhgS==1mt-rkTXT0hVMi6muymZ5RKXMktg at mail.gmail.com... Hi people, I have a problem and I need so much of your help. I have a login script in \\server1\netlogon\script.bat (on my PDC and BDC) that runs "net use" commands to map some shares in time of the logon. This login tries to map share in another server (samba member of domain \\server2). So, I put the result at a log and appears these lines: " System error 1311 has occurred. There are currently no logon servers available to service the logon request. " This is a recurrent problem, but neither always this happens. Sometimes, everything is wonderful and works very well mapping all shares, but is unstable. -------------------------------------------------------------------------------- Windows clients have this problem regardless of the type of PDC/BDC you have (Windows or Samba). The problem is that Windows is generally ready to let people log in before all of the network services are ready and as such people can't log in. Are your servers on static IPs? Also, what kind of DNS/DHCP server do you have? This will help in troubleshooting. TMason