Bonjour.
Voici ma situation : je dois intégrer une station Linux Fedora 8 dans un contrôleur de domaine Active Directory installé sur un Windows Server 2003.
J'ai donc installé les paquets suivants :
samba-client-3.0.28-0
libsmb-client-3.0.28-0
samba-3.0.28-0
system-config-samba-1.2.58-1
samba-common-3.0.28-0
pam_krb5-2.2.18-1
krb5-devel-1.6-2-13
krbafs-devel-1.2.2-10.1
krb5-libs-1.6-2-13
krb5-workstation-1.6-2-13
krb5-auth-dialog-0.7-5
krbafs-1.2.2-10.1
Mon fichier krb5.conf :
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
default_realm = TEST.LOCAL
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 24000
[realms]
TEST.LOCAL = {
kdc = 192.168.100.2
kdc = srv-ad.TEST.LOCAL
kdc = srv-ad.TEST.LOCAL
default_domain = TEST.LOCAL
kdc = srv-ad.TEST.LOCAL
}
[domain_realm]
.test.local = TEST.LOCAL
test.local = TEST.LOCAL
.TEST.LOCAL = TEST.LOCAL
TEST.LOCAL = TEST.LOCAL
[kdc]
profile = /usr/kerberos/share/examples/krb5/kdc.conf
[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}
Mon fichier smb.conf (qui a été modifié en partie par winbind) :
[global]
#--authconfig--start-line--
# Generated by authconfig on 2008/03/25 10:24:42
# DO NOT EDIT THIS SECTION (delimited by --start-line--/--end-line--)
# Any modification may be deleted or altered by authconfig in future
workgroup = TEST
password server = TEST.LOCAL
realm = TEST.LOCAL
security = ads
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
winbind separator = +
template shell = /bin/bash
winbind use default domain = true
winbind offline logon = false
#--authconfig--end-line--
; workgroup = TEST
; security = ads
; realm = TEST.LOCAL
client use spnego = no
server signing = auto
netbios name = fr1fu0003
; winbind use default domain = yes
; winbind separator = +
encrypt passwords = yes
; password server = TEST.LOCAL
; template shell = /bin/bash
[tests]
comment = Test Share using Active Directory
path = /data
valid users = @"TEST\Users"
writeable = yes
browseable = yes
Bref, Kerberos me délivre un ticket avec la commande kinit administrator.
Seulement le problème vient avec la commande :
[root@localhost ~]# net ads join -U administrator
administrator's password:
Failed to join domain: Invalid credentials
De cette façon, je n'arrive donc pas à joindre le domaine mais je peux le faire par la commande suivante :
[root@localhost ~]# net join -U administrator
administrator's password:
$Failed to join domain: Invalid credentials
ADS join did not work, falling back to RPC...
Joined domain TEST.
Seulement je ne suis pas sûr que cette commande corresponde vraiment à ce que je veuille, c'est pour cela que je m'entête a vouloir faire fonctionner le net ads join.
J'aimerais votre avis sur cette question qui me hante littéralement depuis quelques semaines.