diff options
| author | Martin Schwenke <martin@meltin.net> | 2012-05-22 16:12:11 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2012-05-22 16:19:38 +1000 |
| commit | 6fc66689d6aba533af2abab1837ad34eebf03bea (patch) | |
| tree | 2ea379c39d2fbeb1aa05206a45597e5338097fd8 /base | |
| parent | 1b92f4ad6a1881d396542fa52a9e3bcd098cd8ff (diff) | |
Loosen password policy in setup_ad_server.sh
Otherwise we can't set stupid, weak passwords for administrator.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'base')
| -rwxr-xr-x | base/all/root/scripts/setup_ad_server.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/all/root/scripts/setup_ad_server.sh b/base/all/root/scripts/setup_ad_server.sh index 4802f10..c10aa7b 100755 --- a/base/all/root/scripts/setup_ad_server.sh +++ b/base/all/root/scripts/setup_ad_server.sh @@ -28,7 +28,6 @@ provision --realm="@@DOMAIN@@" \ --domain="@@WORKGROUP@@" \ --host-ip="$hostip" \ --host-name="@@AD_NETBIOS_NAME@@" \ - --adminpass="@@AD_ADMIN_PASS@@" \ --server-role="domain controller" \ --function-level="@@AD_FUNCTION_LEVEL@@" \ --dns-backend="SAMBA_INTERNAL" @@ -42,9 +41,12 @@ sed -i -e '/server services/a\ # Add users/groups echo "Adding users and groups" +samba-tool domain passwordsettings set --min-pwd-length=3 +samba-tool domain passwordsettings set --complexity=off samba-tool user add test test01 samba-tool user setexpiry --noexpiry Administrator samba-tool user setexpiry --noexpiry test +samba-tool user setpassword administrator --newpassword="@@AD_ADMIN_PASS@@" # Samba start-up cat >> /etc/rc.d/rc.local <<EOF |
