Changeset View
Changeset View
Standalone View
Standalone View
docker/kolab/utils/12-create-hosted-kolab-service.sh
#!/bin/bash | #!/bin/bash | ||||
. ./settings.sh | . ./settings.sh | ||||
( | ( | ||||
echo "dn: uid=hosted-kolab-service,ou=Special Users,${rootdn}" | echo "dn: uid=hosted-kolab-service,ou=Special Users,${rootdn}" | ||||
echo "objectclass: top" | echo "objectclass: top" | ||||
echo "objectclass: inetorgperson" | echo "objectclass: inetorgperson" | ||||
echo "objectclass: person" | echo "objectclass: person" | ||||
echo "uid: hosted-kolab-service" | echo "uid: hosted-kolab-service" | ||||
echo "cn: Hosted Kolab Service Account" | echo "cn: Hosted Kolab Service Account" | ||||
echo "sn: Service Account" | echo "sn: Service Account" | ||||
echo "givenname: Hosted Kolab" | echo "givenname: Hosted Kolab" | ||||
echo "userpassword: ${hosted_kolab_service_pw}" | echo "userpassword: ${hosted_kolab_service_pw}" | ||||
echo "" | echo "" | ||||
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" | ) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" | ||||