mirror of
				https://github.com/bashclub/zamba-lxc-toolbox.git
				synced 2025-11-04 08:02:28 +01:00 
			
		
		
		
	„zmb-ad.sh“ ändern
This commit is contained in:
		
							
								
								
									
										12
									
								
								zmb-ad.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								zmb-ad.sh
									
									
									
									
									
								
							@@ -49,12 +49,6 @@ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq dist-upgrade
 | 
				
			|||||||
# install required packages
 | 
					# install required packages
 | 
				
			||||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" $LXC_TOOLSET acl attr ntpdate nginx-full rpl net-tools dnsutils ntp bind9 samba smbclient winbind libpam-winbind libnss-winbind krb5-user samba-dsdb-modules samba-vfs-modules lmdb-utils
 | 
					DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" $LXC_TOOLSET acl attr ntpdate nginx-full rpl net-tools dnsutils ntp bind9 samba smbclient winbind libpam-winbind libnss-winbind krb5-user samba-dsdb-modules samba-vfs-modules lmdb-utils
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# stop + disable samba services and remove default config
 | 
					 | 
				
			||||||
systemctl stop smbd nmbd winbind
 | 
					 | 
				
			||||||
systemctl disable smbd nmbd winbind
 | 
					 | 
				
			||||||
rm /etc/samba/smb.conf
 | 
					 | 
				
			||||||
rm /etc/krb5.conf
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# configure bind dns service
 | 
					# configure bind dns service
 | 
				
			||||||
cat << EOF > /etc/default/bind9
 | 
					cat << EOF > /etc/default/bind9
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
@@ -100,6 +94,12 @@ EOF
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
mkdir -p /var/lib/samba/bind-dns/dns
 | 
					mkdir -p /var/lib/samba/bind-dns/dns
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# stop + disable samba services and remove default config
 | 
				
			||||||
 | 
					systemctl stop smbd nmbd winbind
 | 
				
			||||||
 | 
					systemctl disable smbd nmbd winbind
 | 
				
			||||||
 | 
					rm -f /etc/samba/smb.conf
 | 
				
			||||||
 | 
					rm -f /etc/krb5.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
source ./zamba.conf
 | 
					source ./zamba.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# provision zamba domain
 | 
					# provision zamba domain
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user