[FUG-BR] SAMBA

Rafael Carvalho rafacs83 em gmail.com
Quarta Abril 30 14:48:45 BRT 2014


Pessoal,

Estou sem poder acessar o compartilhamento do samba.
De uma estação windows quando digito o ip do server ele diz que o windows
não pode acessar \\server.

testparm:

Load smb config files from /etc/samba/smb.conf
WARNING: Ignoring invalid value 'on' for parameter 'ldap ssl'
Processing section "[netlogon]"
Processing section "[profiles]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[public]"
Processing section "[Arquivos]"
Processing section "[Arquivos2]"
Server's Role (logon server) conflicts with share-level security
Loaded services file OK.
Warning: Service printers defines a print command, but rameter is ignored
when using CUPS libraries.
Server role: ROLE_STANDALONE
----------------------------------------------
Segue meu smb.conf
-----------------------------------------
[global]
        workgroup = DOMINIO1
        netbios name = PDCSERVER
        security = share
        enable privileges = yes
        server string = Linux Server PDC
        encrypt passwords = Yes
        #map to guest = Bad User
        ldap ssl = on
        # method 1:
        #unix password sync = no
        #ldap passwd sync = yes

        # method 2:
        unix password sync = yes
        ldap passwd sync = yes
        passwd program = /usr/sbin/smbldap-passwd -u "%u"
        passwd chat = "Changing *\nNew password*" %n\n "*Retype new
password*" %n\n"

        log level = 1
        syslog = 0
        log file = /var/log/samba/log.%U
        max log size = 100000
        time server = Yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
SO_KEEPALIVE
        mangling method = hash2
        Dos charset = 850
        Unix charset = ISO8859-1
        ntlm auth = YES
        lanman auth = YES
#       client ntlmv2 = YES

        logon script =
        logon drive =
        logon home =
        logon path =


        domain logons = Yes
        domain master = Yes
        os level = 150
        preferred master = Yes
        wins support = yes


        # passdb backend = ldapsam:"ldap://ldap1.company.com ldap://
ldap2.company.com"
        passdb backend = ldapsam:"ldap://127.0.0.1"
        ldap admin dn = cn=manager,dc=geologica,dc=com,dc=br
        ldap suffix = dc=geologica,dc=com,dc=br
        ldap group suffix = ou=Groups
        ldap user suffix = ou=Users
        ldap machine suffix = ou=Computers
        add user script = /usr/sbin/smbldap-useradd -m "%u"
        delete user script = /usr/sbin/smbldap-userdel "%u"
        add machine script = /usr/sbin/smbldap-useradd -t 0 -w "%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'
load printers = Yes
        create mask = 0640
        directory mask = 0750
        #force create mode = 0640
        #force directory mode = 0750
        nt acl support = Yes
        printing = cups
        printcap name = cups
        deadtime = 10
        guest account = nobody
        map to guest = Bad User
        dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
        show add printer wizard = yes
        ; to maintain capital letters in shortcuts in any of the profile
folders:
        preserve case = yes
        short preserve case = yes
        case sensitive = no

        #veto files =
/*.rar/*.iso/*.mp3/*.wav/*.avi/*.src/.pif/*.com/*.wma/*.wmv/*.mpeg/*.mpg/*.mp4/*.mid/*.zip/cgvnse.exe
[public]
        path = /tmp
#       guest ok = yes
        browseable = Yes
        writable = yes
        valid users = @"Tecnologia"
        write list = @"Tecnologia"
[Arquivos]
        path = /Arquivos
        writable = yes
        create mask = 0777
        directory mode = 0777
        veto files = /*.mp3/*.src/.pif/*.com
        vfs object = audit
------------------------------------------------------


Mais detalhes sobre a lista de discussão freebsd