On 04/09/2019 18:33, Rafael Lenharo via samba wrote:> Hi all,
>
> Firstly, sorry for my english, is not the best.
> I'm sure my question is simple, but I didn't find a solution.
>
> I installed SAMBA 4.8.3 on CentOS 7.6.1810 so that it manages access to
> some folders being shared across the network and also to manage user access
> (logins) on domain-configured Windows computers. However, when I use a
> computer that does not have a domain set up and try to access the folders
> being shared over the network, SAMBA requires me to enter the domain IP in
> the "username" field along with the login:
Is this a new NT4-style domain ?
If so, why ? You will be better off in the long term creating a new AD
domain, but this will mean using Samba packages from another repo (you
cannot provision Samba on the standard Centos Samba packages), or use a
different OS.
Windows (quite by accident) keeps breaking NT4-style domains, they
depend on old technology which is, bit by bit, being removed.
As to why you have to add the IP, it is because you have: netbios name =
165.8.104.12
It should be the computers short hostname in uppercase or not be there
at all
Rowland
>
> https://i.imgur.com/Vd2xmca.jpg
>
>
> What must be done so that the user does not have to enter the domain IP
> even when the machine is not within the domain?
>
>
> smb.conf file:
>
> [global]
> workgroup = T12
> server string = Samba Server Version %v
> netbios name = 165.8.104.12
> interfaces = 165.8.104.12
> hosts allow = 165.8.104. 127.0.0.1
> log level = 2
> log file = /var/log/samba/log.%m
> max log size = 50
> security = user
> passdb backend = tdbsam
> domain master = yes
> domain logons = yes
> logon script = %U.bat
> logon path = \\165.8.104.12\Profiles\%U
> logon drive = z:
> add machine script = /usr/sbin/useradd -n -c "Workstation
(%u)" -M
> -d /nohome -s /bin/false "%u"
> local master = yes
> os level = 64
> preferred master = yes
> wins support = yes
> load printers = yes
> cups options = raw
> create mask = 775
> directory mask = 775
> ntlm auth = yes[homes]
> comment = Home Directories
> path = /data/users/%u
> browseable = no
> writeable = yes[printers]
> comment = All Printers
> path = /var/spool/samba
> browseable = No
> guest ok = no
> writeable = no
> printable = Yes[netlogon]
> comment = Network Logon Service
> path = /data/users/netlogon
> guest ok = yes
> public = no
> writable = no
> browsable = no[Profiles]
> comment = User Profiles
> path = /data/users/Profiles
> create mode = 0600
> directory mode = 0700
> writable = yes
> browseable = no[public]
> comment = Public Area
> path = /data/public
> public = yes
> writable = yes
> printable = no