![SAMB-Berechtigungen können keine Gruppen über Windows hinzufügen](https://rvso.com/image/1598577/SAMB-Berechtigungen%20k%C3%B6nnen%20keine%20Gruppen%20%C3%BCber%20Windows%20hinzuf%C3%BCgen.png)
Ich bin ziemlich neu bei Samba und hatte Probleme, Domänenbenutzern den Zugriff auf Freigaben zu erlauben. Ich habe meinen Samba-Server (CentOS 7) als Domänenmitglied mit meinem AD verknüpft. Der Befehl # Realm List zeigt die richtigen Informationen an, aber ID Benutzername zeigt nicht die richtigen Informationen an, aber net ads user -U admin -I serverip zeigt alle Domänenbenutzer an. In Windows melde ich mich an, während ich in den Freigabeberechtigungen bin und ein Gruppenobjekt für Domänenbenutzer hinzufüge als[email geschützt](Ich glaube jedoch nicht, dass dies die Authentifizierung ausführt, da sich andere Domänenadministratoren nicht anmelden können.) Ich klicke auf „OK“ und „MeineDomäne\Domänenbenutzer“ wird angezeigt, sodass es weiß, dass ich eine Domäne verwende. Wenn ich jedoch auf „Übernehmen“ klicke, wird „Zugriff verweigert“ angezeigt. Wenn ich Konfigurationen einfügen muss, lassen Sie es mich bitte wissen. Ich habe die angehängt, die meiner Meinung nach relevant sind.
smb.conf
See smb.conf.example for a more detailed config
file or
read the smb.conf manpage.
Run 'testparm' to verify the config is correct
after
you modified it.
[global]
workgroup = GBZ
security = ADS
realm = GBZ.COM
#netbios name = smb.gbz.com
password server = AD.GBZ.COM
log file = /var/log/samba/log.%m
max log size = 50
unix extensions = No
client signing = required
local master = no
domain master = no
template homedir = /home/%U
template shell = /bin/bash
winbind separator = +
winbind use default domain = yes
winbind nss info = rfc2307
idmap config * : range = 16777216-33554431
idmap config * : backend = ad.gbz.com
cups options = raw
root preexec = /usr/local/sbin/mkhomedir.sh %U
usershare allow guests = yes
os level = 20
map to guest = bad user
host msdfs = no
vfs objects = acl_xattr
map acl inherit = yes
store dos attributes = yes
[cnc]
path = /srv/samba/cnc
browseable = yes
writable = yes
guest ok = yes
read only = no
public = yes
valid users = @"GBZ+Domain Users"
admin users = @"GBZ+Domain Admins"
[public]
path = /srv/samba/public
browseable = yes
writable = yes
guest ok = yes
read only = no
public = yes
valid users = @"GBZ+domain users"
admin users = @"GBZ+Domain Admins"
[hr]
path = /srv/samba/hr
comment = Sensitive infomation, authorization is required.
read only = no
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
krb5.conf
# Configuration snippets may be placed in this directory as well
includedir /var/lib/sss/pubconf/krb5.include.d/
[libdefaults]
ticket_lifetime = 600
defualt_realm = GBZ.COM
dns_lookup_realm = false
dns_lookup_kdc = true
defualt_tkt_enctypes = des3-hmac-sha1 des-cbc-crc
defualt_tgs_enctypes = des3-hmac-sha1 des-cbc-crc
[realms]
GBZ.COM = {
defualt_domain = gbz.com
}
[domain_realm]
.gbz.com = GBZ.COM
gbz.com = GBZ.COM
[kdc]
profile = /etc/krb5kdc/kdc.conf
[logging]
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmin.log
defualt = FILE:/var/log/krb5lib.logog
nsswitch.conf
passwd: compat files winbind
shadow: compat files winbind
group: compat files
#initgroups: files sss
bootparams: nisplus [NOTFOUND=return] files
ethers: db files
netmasks: db files
networks: db files
protocols: db files
rpc: db files
services: db files
netgroup: nis
publickey: nisplus
automount: files sss
aliases: files nisplus
jede Hilfe ist sehr willkommen