This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:samba4dc [2015/05/10 17:23] procacci@tem-tsp.eu [domain user] |
docpublic:systemes:samba4dc [2015/06/06 14:46] (current) procacci@tem-tsp.eu [Samba 4 DC] |
||
---|---|---|---|
Line 4: | Line 4: | ||
* https:// | * https:// | ||
+ | pourquoi debian vs centos MIT/ | ||
+ | |||
+ | * https:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * https:// | ||
==== samba 4 ldap ==== | ==== samba 4 ldap ==== | ||
Line 16: | Line 22: | ||
* https:// | * https:// | ||
+ | * http:// | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * https:// | ||
+ | * https:// | ||
==== packages samba ==== | ==== packages samba ==== | ||
Line 140: | Line 151: | ||
</ | </ | ||
+ | |||
+ | ==== creation d'un domain ===== | ||
+ | |||
+ | < | ||
+ | root@debie: | ||
+ | Realm: DOM.4BO.FR | ||
+ | | ||
+ | | ||
+ | DNS backend (SAMBA_INTERNAL, | ||
+ | DNS forwarder IP address (write ' | ||
+ | Administrator password: | ||
+ | Retype password: | ||
+ | ERROR(< | ||
+ | </ | ||
+ | |||
+ | => il faut retirer le fichier / | ||
+ | |||
+ | < | ||
+ | root@debie: | ||
+ | root@debie: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | root@debie:/ | ||
+ | Realm [DOM.4BO.FR]: | ||
+ | | ||
+ | | ||
+ | DNS backend (SAMBA_INTERNAL, | ||
+ | DNS forwarder IP address (write ' | ||
+ | Administrator password: | ||
+ | Retype password: | ||
+ | Looking up IPv4 addresses | ||
+ | Looking up IPv6 addresses | ||
+ | Setting up share.ldb | ||
+ | Setting up secrets.ldb | ||
+ | Setting up the registry | ||
+ | Setting up the privileges database | ||
+ | Setting up idmap db | ||
+ | Setting up SAM db | ||
+ | Setting up sam.ldb partitions and settings | ||
+ | Setting up sam.ldb rootDSE | ||
+ | Pre-loading the Samba 4 and AD schema | ||
+ | Adding DomainDN: DC=dom, | ||
+ | Adding configuration container | ||
+ | Setting up sam.ldb schema | ||
+ | Setting up sam.ldb configuration data | ||
+ | Setting up display specifiers | ||
+ | Modifying display specifiers | ||
+ | Adding users container | ||
+ | Modifying users container | ||
+ | Adding computers container | ||
+ | Modifying computers container | ||
+ | Setting up sam.ldb data | ||
+ | Setting up well known security principals | ||
+ | Setting up sam.ldb users and groups | ||
+ | Setting up self join | ||
+ | Adding DNS accounts | ||
+ | Creating CN=MicrosoftDNS, | ||
+ | Creating DomainDnsZones and ForestDnsZones partitions | ||
+ | Populating DomainDnsZones and ForestDnsZones partitions | ||
+ | Setting up sam.ldb rootDSE marking as synchronized | ||
+ | Fixing provision GUIDs | ||
+ | A Kerberos configuration suitable for Samba 4 has been generated at / | ||
+ | Setting up fake yp server settings | ||
+ | Once the above files are installed, your Samba4 server will be ready to use | ||
+ | Server Role: | ||
+ | Hostname: | ||
+ | NetBIOS Domain: | ||
+ | DNS Domain: | ||
+ | DOMAIN SID: S-1-5-21-1003881674-2133527201-3413129890 | ||
+ | </ | ||
+ | |||
+ | ===== DNS ==== | ||
+ | |||
+ | verification des records DNS en utilisant le DNS du localhost | ||
+ | |||
+ | < | ||
+ | root@debie:/ | ||
+ | Using domain server: | ||
+ | Name: 192.168.1.9 | ||
+ | Address: 192.168.1.9# | ||
+ | Aliases: | ||
+ | |||
+ | _ldap._tcp.dom.4bo.fr has SRV record 0 100 389 debie.dom.4bo.fr. | ||
+ | |||
+ | |||
+ | root@debie:/ | ||
+ | Using domain server: | ||
+ | Name: 192.168.1.9 | ||
+ | Address: 192.168.1.9# | ||
+ | Aliases: | ||
+ | |||
+ | _kerberos._udp.dom.4bo.fr has SRV record 0 100 88 debie.dom.4bo.fr. | ||
+ | |||
+ | |||
+ | root@debie:/ | ||
+ | |||
+ | ; <<>> | ||
+ | ; (1 server found) | ||
+ | ;; global options: +cmd | ||
+ | ;; Got answer: | ||
+ | ;; ->> | ||
+ | ;; flags: qr aa rd ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | ||
+ | ;; WARNING: recursion requested but not available | ||
+ | |||
+ | ;; QUESTION SECTION: | ||
+ | ; | ||
+ | |||
+ | ;; ANSWER SECTION: | ||
+ | _ldap._tcp.dom.4bo.fr. 900 IN SRV 0 100 389 debie.dom.4bo.fr. | ||
+ | |||
+ | ;; Query time: 3 msec | ||
+ | ;; SERVER: 192.168.1.9# | ||
+ | ;; WHEN: Sun May 10 12:56:38 CEST 2015 | ||
+ | ;; MSG SIZE rcvd: 68 | ||
+ | |||
+ | |||
+ | root@debie:/ | ||
+ | Using domain server: | ||
+ | Name: 192.168.1.9 | ||
+ | Address: 192.168.1.9# | ||
+ | Aliases: | ||
+ | </ | ||
+ | |||
Line 158: | Line 293: | ||
</ | </ | ||
+ | < | ||
+ | root@debie:/ | ||
+ | root@debie:/ | ||
+ | [libdefaults] | ||
+ | default_realm = DOM.4BO.FR | ||
+ | dns_lookup_realm = false | ||
+ | dns_lookup_kdc = true | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | < | ||
+ | Configuration de l' | ||
+ | │ Veuillez indiquer les noms d' | ||
+ | | ||
+ | │ Serveurs Kerberos du royaume : │ | ||
+ | | ||
+ | │ debie.dom.4bo.fr______________________________________ | ||
+ | |||
+ | |||
+ | Configuration de l' | ||
+ | │ Veuillez indiquer le nom d' | ||
+ | │ │ | ||
+ | │ Serveur administratif du royaume Kerberos : │ | ||
+ | │ │ | ||
+ | │ debie.dom.4bo.fr__________________________________________________________ | ||
+ | |||
+ | | ||
+ | │ Quand les utilisateurs tentent d' | ||
+ | │ ajoute le royaume par défaut. Le royaume par défaut peut également être utilisé comme royaume d'un service Kerberos s' | ||
+ | │ le nom de domaine DNS local en majuscules. | ||
+ | | ||
+ | │ Royaume (« realm ») Kerberos version 5 par défaut : │ | ||
+ | | ||
+ | │ DOM.4BO.FR__________________________________________________________________________ | ||
+ | |||
+ | </ | ||
+ | |||
+ | Attention, il faut bien avoir sont ip de DC dans le resolv.conf | ||
+ | |||
+ | |||
+ | < | ||
+ | root@debie:/ | ||
+ | Password for administrator@DOM.4BO.FR: | ||
+ | Warning: Your password will expire in 41 days on dim. 21 juin 2015 11:11:26 CEST | ||
+ | |||
+ | |||
+ | root@debie:/ | ||
+ | Ticket cache: FILE:/ | ||
+ | Default principal: administrator@DOM.4BO.FR | ||
+ | |||
+ | Valid starting | ||
+ | 10/05/2015 14: | ||
+ | renew until 11/05/2015 14:34:58 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== KRB change password ===== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ==== kerberos ticket debug ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | root@debie:/ | ||
+ | [4230] 1432418201.868726: | ||
+ | [4230] 1432418201.869645: | ||
+ | [4230] 1432418201.879583: | ||
+ | [4230] 1432418201.889971: | ||
+ | [4230] 1432418201.925713: | ||
+ | [4230] 1432418201.929666: | ||
+ | [4230] 1432418201.929725: | ||
+ | [4230] 1432418201.929818: | ||
+ | [4230] 1432418201.929848: | ||
+ | Password for Administrator@DOM.4BO.FR: | ||
+ | [4230] 1432418225.405906: | ||
+ | [4230] 1432418225.406093: | ||
+ | [4230] 1432418225.406171: | ||
+ | [4230] 1432418225.406189: | ||
+ | [4230] 1432418225.406246: | ||
+ | [4230] 1432418225.418784: | ||
+ | [4230] 1432418225.428392: | ||
+ | [4230] 1432418225.511409: | ||
+ | [4230] 1432418225.515178: | ||
+ | [4230] 1432418225.515236: | ||
+ | [4230] 1432418225.515265: | ||
+ | [4230] 1432418225.515360: | ||
+ | [4230] 1432418225.515400: | ||
+ | [4230] 1432418225.515453: | ||
+ | [4230] 1432418225.515728: | ||
+ | [4230] 1432418225.515747: | ||
+ | [4230] 1432418225.515912: | ||
+ | [4230] 1432418225.515966: | ||
+ | [4230] 1432418225.515986: | ||
+ | [4230] 1432418225.516145: | ||
+ | [4230] 1432418225.516190: | ||
+ | [4230] 1432418225.516209: | ||
+ | Warning: Your password will expire in 41 days on sam. 04 juil. 2015 23:03:44 CEST | ||
+ | </ | ||
+ | |||
+ | |||
+ | < | ||
+ | root@debie: | ||
+ | kpasswd: Cannot find KDC for requested realm getting initial ticket | ||
+ | root@debie: | ||
+ | klist: Credentials cache file '/ | ||
+ | root@debie: | ||
+ | New Password: | ||
+ | INFO: Current debug levels: | ||
+ | all: 10 | ||
+ | tdb: 10 | ||
+ | .... | ||
+ | ldb: 10 | ||
+ | Processing section " | ||
+ | Processing section " | ||
+ | pm_process() returned Yes | ||
+ | Security token SIDs (1): | ||
+ | SID[ 0]: S-1-5-18 | ||
+ | | ||
+ | Privilege[ | ||
+ | Privilege[ | ||
+ | ... | ||
+ | Privilege[ 24]: SeEnableDelegationPrivilege | ||
+ | | ||
+ | lpcfg_servicenumber: | ||
+ | schema_fsmo_init: | ||
+ | schema_fsmo_init: | ||
+ | ldb: | ||
+ | Sorting rpmd with attid exception 3 rDN=CN DN=CN=Administrator, | ||
+ | Changed password OK | ||
+ | </ | ||
+ | |||
+ | retirer l' | ||
+ | |||
+ | http:// | ||
+ | |||
+ | < | ||
+ | root@debie: | ||
+ | Processing section " | ||
+ | Processing section " | ||
+ | pm_process() returned Yes | ||
+ | Expiry for user ' | ||
+ | </ | ||
==== ntpd ==== | ==== ntpd ==== | ||
Line 194: | Line 473: | ||
</ | </ | ||
+ | ===== windows client Password change ===== | ||
+ | juste apres integrer un poste client W7 dans le domaine, le changement de password user de domain via CTRL+ALT+SUPP echoue | ||
+ | |||
+ | cf log serveur | ||
+ | |||
+ | < | ||
+ | [2015/05/25 12: | ||
+ | kpasswdd: Password change rejected, password changes may not be permitted on this account, or the minimum password age may not have elapsed. | ||
+ | </ | ||
+ | |||
+ | apparement il faut attendre 24H minimum avant de pouvoir le changer d' | ||
+ | |||
+ | < | ||
+ | root@debie: | ||
+ | Processing section " | ||
+ | Processing section " | ||
+ | pm_process() returned Yes | ||
+ | Password informations for domain ' | ||
+ | |||
+ | Password complexity: on | ||
+ | Store plaintext passwords: off | ||
+ | Password history length: 24 | ||
+ | Minimum password length: 7 | ||
+ | Minimum password age (days): 1 | ||
+ | Maximum password age (days): 42 | ||
+ | </ | ||
+ | |||
+ | cf http:// | ||
+ | |||
+ | History lengh 24 -> 2 | ||
+ | |||
+ | < | ||
+ | root@debie:/ | ||
+ | Password history length: 24 | ||
+ | |||
+ | |||
+ | root@debie:/ | ||
+ | Processing section " | ||
+ | Processing section " | ||
+ | pm_process() returned Yes | ||
+ | Password history length changed! | ||
+ | All changes applied successfully! | ||
+ | root@debie:/ | ||
+ | Processing section " | ||
+ | Processing section " | ||
+ | pm_process() returned Yes | ||
+ | Password informations for domain ' | ||
+ | |||
+ | Password complexity: on | ||
+ | Store plaintext passwords: off | ||
+ | Password history length: 2 | ||
+ | Minimum password length: 7 | ||
+ | Minimum password age (days): 1 | ||
+ | Maximum password age (days): 42 | ||
+ | |||
+ | </ | ||
==== domain user ==== | ==== domain user ==== | ||
Line 208: | Line 543: | ||
< | < | ||
root@debie:/ | root@debie:/ | ||
- | < | + | </code> |
recherche d'un computr fraichement ajouté au domaine | recherche d'un computr fraichement ajouté au domaine | ||
Line 269: | Line 604: | ||
# 3 referrals | # 3 referrals | ||
</ | </ | ||
+ | |||
+ | ===== Remote Server Administration Tools RSAT ===== | ||
+ | |||
+ | ref | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * https:// | ||
+ | * | ||
+ |