Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2484989
11-reset-cyrus-admin-password.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
470 B
Referenced Files
None
Subscribers
None
11-reset-cyrus-admin-password.sh
View Options
#!/bin/bash
. ./settings.sh
(
echo
"dn: uid=cyrus-admin,ou=Special Users,
${
rootdn
}
"
echo
"changetype: modify"
echo
"replace: userpassword"
echo
"userpassword:
${
cyrus_admin_pw
}
"
echo
""
)
|
ldapmodify -x -h
${
ldap_host
}
-D
"
${
ldap_binddn
}
"
-w
"
${
ldap_bindpw
}
"
oldpw
=
$(
grep ^admin_password /etc/kolab/kolab.conf
|
awk
'{print $3}'
)
sed -i -r
\
-e
"s/
${
oldpw
}
/
${
cyrus_admin_pw
}
/g"
\
/etc/kolab/kolab.conf
systemctl restart kolabd wallace
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Thu, Nov 20, 5:18 PM (19 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
387232
Default Alt Text
11-reset-cyrus-admin-password.sh (470 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment