Lines 24-30
udm-test users/user create --position "cn=users,$ldap_base" \
|
Link Here
|
---|
|
24 |
--set password=univention \ |
24 |
--set password=univention \ |
25 |
--set primaryGroup="cn=Domain Admins,cn=groups,$ldap_base" |
25 |
--set primaryGroup="cn=Domain Admins,cn=groups,$ldap_base" |
26 |
|
26 |
|
27 |
udm-test users/user modify --dn "uid=Administrator,cn=users,$ldap_base" --set username="$USERNAME" |
27 |
udm-test users/user modify --dn "uid=Administrator,cn=users,$ldap_base" --set username="$USERNAME" || |
|
|
28 |
fail_fast 1 "Failed to rename user 'Administrator'" |
28 |
|
29 |
|
29 |
# wait a little bit longer since we have to wait for the slapd restart |
30 |
# wait a little bit longer since we have to wait for the slapd restart |
30 |
trap "udm users/user modify --dn \"uid=$USERNAME,cn=users,$ldap_base\" --set username=\"Administrator\" \ |
31 |
trap "udm users/user modify --dn \"uid=$USERNAME,cn=users,$ldap_base\" --set username=\"Administrator\" \ |
Lines 48-54
cat /etc/univention/templates/info/*.info | sed -ne 's|^File: ||p;s|^Multifile:
|
Link Here
|
---|
|
48 |
[ "$template" = etc/nagios3/nagios.cfg ] && continue #ignore comment |
49 |
[ "$template" = etc/nagios3/nagios.cfg ] && continue #ignore comment |
49 |
[ "$template" = etc/issue ] && continue #ignore comment |
50 |
[ "$template" = etc/issue ] && continue #ignore comment |
50 |
[ "$template" = etc/bind/named.conf.samba4 ] && continue # Bug #33892 |
51 |
[ "$template" = etc/bind/named.conf.samba4 ] && continue # Bug #33892 |
51 |
|
52 |
|
52 |
echo -n "Checking $template: " |
53 |
echo -n "Checking $template: " |
53 |
if [[ "$template" == etc/security/access-* ]]; then |
54 |
if [[ "$template" == etc/security/access-* ]]; then |
54 |
grep "Administrator," "/$template" && exit 1 |
55 |
grep "Administrator," "/$template" && exit 1 |
Lines 75-78
for file in /etc/ldap/slapd.conf \
|
Link Here
|
---|
|
75 |
done |
76 |
done |
76 |
|
77 |
|
77 |
exit "$RETVAL" |
78 |
exit "$RETVAL" |
78 |
|
|
|