User Tools

Site Tools


create_domain_member

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
create_domain_member [2020/04/22 16:02] chriscreate_domain_member [2020/04/22 16:17] (current) chris
Line 4: Line 4:
  
  
-  * //nano /etc/ssh/sshd_config// and edit to //Permitrootlogin = yes//+  * //nano /etc/ssh/sshd_config//  
 + 
 +     Permitrootlogin = yes 
   * //service ssh restart//   * //service ssh restart//
   * //apt update && apt upgrade && apt autoremove//   * //apt update && apt upgrade && apt autoremove//
Line 48: Line 51:
  
        #mibs:        #mibs:
-        
  
   * //nano /etc/ntp.conf//   * //nano /etc/ntp.conf//
Line 67: Line 69:
  
        # restrict ::        # restrict ::
-        
  
  
   * //service ntp restart//   * //service ntp restart//
   * show status with //ntpq -p//   * show status with //ntpq -p//
-12 apt -y install realmd sssd sssd-tools adcli krb5-user packagekit samba-common samba-common-bin samba-libs  +  * //apt -y install realmd sssd sssd-tools adcli krb5-user packagekit samba-common samba-common-bin samba-libs//  
-13 "nano /etc/resolv.conf +//Italic Text//nano /etc/resolv.conf
-domain domain.artit.nl +
-search domain.artit.nl. +
-nameserver 192.168.10.11  +
-nameserver 192.168.10.1 +
-nameserver 192.168.10.100" +
-14 realm discover DOMAIN.ARTIT.NL +
-15 realm join DOMAIN.ARTIT.NL +
-16 id administrator@DOMAIN.ARTIT.NL +
-17 apt -y install winbind libpam-winbind libnss-winbind krb5-config samba-dsdb-modules samba-vfs-modules  +
-18 "nano /etc/samba/smb.conf +
-# ArtIT Domain Integration of SAMBA +
-[global]+
  
 +      domain domain.artit.nl
 +      search domain.artit.nl.
 +      nameserver 192.168.10.11 
 +      nameserver 192.168.10.1
 +      nameserver 192.168.10.100
 +
 +  * //realm discover DOMAIN.ARTIT.NL//
 +  * //realm join DOMAIN.ARTIT.NL//
 +  * //id administrator@DOMAIN.ARTIT.NL//
 +  * //apt -y install winbind libpam-winbind libnss-winbind krb5-config samba-dsdb-modules samba-vfs-modules// 
 +  * //nano /etc/samba/smb.conf//
 +
 +      # ArtIT Domain Integration of SAMBA
 +  
 +  [global]
 +        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n
         workgroup = VERIFY         workgroup = VERIFY
-        realm DOMAIN.ARTIT.NL+        winbind rpc only yes 
 +        passwd program = /usr/bin/passwd %u 
 +        max log size = 1000
         security = ads         security = ads
 +        template homedir = /home/%U
 +        os level = 20
         idmap config * : backend = tdb         idmap config * : backend = tdb
-        idmap config * : range = 3000-7999 
-        idmap config DOMAIN.ARTIT.NL : backend = rid 
-        idmap config DOMAIN.ARTIT.NL : range = 10000-999999 
-        template homedir = /home/%U 
-        template shell = /bin/bash 
-        winbind use default domain = true 
-        winbind offline logon = false 
-        winbind rpc only = yes 
- 
-        log file = /var/log/samba/log.%m 
-        max log size = 1000 
         syslog = 0         syslog = 0
 +        panic action = /usr/share/samba/panic-action %d
 +        unix password sync = yes
 +        realm = DOMAIN.ARTIT.NL
         usershare allow guests = Yes         usershare allow guests = Yes
-        map to guest = Bad User 
         obey pam restrictions = Yes         obey pam restrictions = Yes
 +        idmap config domain.artit.nl : range = 10000-999999
 +        wins support = true
 +        winbind offline logon = false
         pam password change = Yes         pam password change = Yes
-        passwd chat *Enter\snew\s*\spassword:%n\n *Retype\snew\s*\spassword:* %n\n +        log file /var/log/samba/log.%m 
-        *password\supdated\ssuccessfully* +        template shell = /bin/bash 
-        passwd program /usr/bin/passwd %u +        idmap config domain.artit.nl : backend = rid 
-        unix password sync yes+        idmap config * : range 3000-7999
         map to guest = bad user         map to guest = bad user
- +        winbind use default domain = true 
-# Printer Section ------------------------------------------------------------------------- +   
- +   
-[printers]+  # Printer Section ------------------------------------------------------------------------- 
 +   
 +  [printers]
         comment = All Printers         comment = All Printers
         browseable = yes         browseable = yes
Line 123: Line 128:
         read only = yes         read only = yes
         create mask = 0700         create mask = 0700
- +   
-[print$] +  [print$] 
-   +  
         comment = Printer Drivers         comment = Printer Drivers
         path = /var/lib/samba/printers         path = /var/lib/samba/printers
Line 131: Line 136:
         read only = yes         read only = yes
         guest ok = yes         guest ok = yes
-        write list = root, administrators@DOMANIN.ARTIT.NL +        write list = root chris @"VERIFY\Administrators" @"VERIFY\Users" 
- +   
-# NETWORK SHARES -------------------------------------------------------------------------- +  # NETWORK SHARES -------------------------------------------------------------------------- 
- +   
- +   
-[c$]+  [c$]
         comment = Root Share         comment = Root Share
         path = /         path = /
         guest ok = no         guest ok = no
-        browseable = no+        browseable = yes
         read only = no         read only = no
-NETWORK SHARES --------------------------------------------------------------------------+        create mask = 0775 
 +        directory mask = 0775 
 +        valid users = root chris @"VERIFY\Administrators" @"VERIFY\Users" 
 +      
 +      
 +    ... 
 +      
 +  End of configuration file --- ArtIT 22 april 2020 ---  
 +  
  
 +   * //nano /etc/nsswitch.conf//
  
-[c$]+      passwd:         files systemd winbind    
 +      group:          files systemd winbind
  
-        comment = Root Share +   //net ads join -U Administrator// 
-        path = / +   * //systemctl restart winbind// 
-        guest ok = no +   * //Unordered List Itemwbinfo -u// 
-        browseable = no + 
-        read only = no" + 
-19 "nano /etc/nsswitch.conf +You now have a running domain member in your network.
-passwd:         files systemd winbind    +
-group:          files systemd winbind" +
-20 net ads join -U Administrator +
-21 systemctl restart winbind +
-22 wbinfo -u+
  
  
create_domain_member.1587564141.txt.gz · Last modified: 2020/04/22 16:02 by chris