Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker with self-service-password cannot modify the AD user password. #999

Open
ilanni2460 opened this issue Oct 11, 2024 · 3 comments
Open
Labels

Comments

@ilanni2460
Copy link

Docker with self-service-password cannot modify the AD user password. According to the relevant documents, you need to import the relevant certificates of AD.

@coudot
Copy link
Member

coudot commented Oct 11, 2024

You can use a volume to have them in docker image, did you try this?

@ilanni2460
Copy link
Author

@coudot According to relevant information, openldap needs to be installed in the docker image, and the openldap service needs to be started.

@sofronic
Copy link

sofronic commented Oct 15, 2024

I managed to get it working with custom image and volume that holds the ldaps AD cert:

docker run -p 8030:80 -v $PWD/ssp.conf.php:/var/www/conf/config.inc.local.php -v $PWD/certificate.crt:/etc/ssl/certs/ca-certificates.crt -it image -e debug

Dockerfile:

FROM ltbproject/self-service-password:1.7
RUN apt-get -y update &&  \ 
    apt-get install --no-install-recommends  \
    -y libldap-common libsasl2-modules && \
    rm -rf /var/lib/apt/lists/*

config.inc.local.php:

<?php // My SSP configuration
$keyphrase = "oi";
$debug = true;
$ad_mode = true;
$ldap_url = "ldaps://foo.bar";
$ldap_starttls = false;
$ldap_binddn = "CN=changeme,OU=foobar,DC=foo,DC=bar";
$ldap_bindpw = "kor";
$ldap_login_attribute = "sAMAccountName";
$ldap_fullname_attribute = "cn";
$ldap_base = "OU=foobar,DC=foo,DC=bar";
$ldap_filter = "(&(objectClass=user)(sAMAccountName={login})(!(userAccountControl:1.2.840.113556.1.4.803:=2)))";
$ad_options['force_unlock'] = true;
$ad_options['change_expired_password'] = true;
$audit_log_file = "/tmp/audit.log";
?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants