You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#19 added an alpine Dockerfile for building and running (yay) is merged into dev, eventually into master once it's been more tested. Eventually, this will link to a docker hub automated build for easy deployment and use.
However, no documentation in the README.md file yet! This needs to be done.
Documentation would need to include, at minimum:
How to mount a volume for a config file (mount /app/config/config.cfg to override the default one)
Sure - this is just your use of the config file vs docker compose (in other words - everything working as intended).
In frontend.listen, you specify the bind address for plaintext LDAP as 0.0.0.0:3893. This means that inside the container, 3893 is the only bound port.
If you update that to 0.0.0.0:389, it'll start listening over port 389 for plaintext LDAP queries.
I'd check permissions next. Try (JUST FOR TESTING) to set them to chmod 777 to see if they're readable then.
$ docker run --rm -v certs:/etc/glauth/certs -v glauth-config:/app/config -it glauth/glauth:v1.1.0 sh
/go # ls -la /etc/glauth/certs/
...
-rwxrwxrwx 1 root root 2499 Oct 27 17:53 cert.pem
-rwxrwxrwx 1 root root 3267 Oct 27 17:53 key.pem
By the way, it would be helpful to add file name to log string: "LDAP Server Failed: open : no such file or directory". Otherwise I'm not sure that it complains about cert files, because the prefix is "LDAP Server", not "LDAPS Server".
Documentation is really scarse though. I'm concerned about user permissions: How do I set up admin users (those who I can connect with an LDAP admin app like Softerra's) to make changes, but avoid the other users I create with them (at least as a basic feature) to alter the users/server as well?
Activity
sikmir commentedon Oct 27, 2018
I'm trying to get it working, but have some problem:
So, the question is why 389 and 636 ports are closed? Log says nothing.
@benyanke Could you please take a look?
benyanke commentedon Oct 29, 2018
Sure - this is just your use of the config file vs docker compose (in other words - everything working as intended).
In
frontend.listen, you specify the bind address for plaintext LDAP as0.0.0.0:3893. This means that inside the container, 3893 is the only bound port.If you update that to
0.0.0.0:389, it'll start listening over port 389 for plaintext LDAP queries.sikmir commentedon Oct 29, 2018
Thanks, I was mistaken about what
[frontend]actually is. I should use[ldap]and[ldaps]config sections instead, it's much more clear.config.cfg:
docker-compose.yml:
But, still some problem:
What is "no such file or directory" for here?
benyanke commentedon Oct 29, 2018
That's because you haven't created your certs and placed them there - glauth doesn't generate certs, it just uses them.
sikmir commentedon Oct 29, 2018
No, I've generated them in advance:
$ docker run --rm -v certs:/etc/glauth/certs -v glauth-config:/app/config -it glauth/glauth:v1.1.0 sh /go # ls /etc/glauth/certs/ cert.pem key.pembenyanke commentedon Oct 29, 2018
I'd check permissions next. Try (JUST FOR TESTING) to set them to
chmod 777to see if they're readable then.sikmir commentedon Oct 29, 2018
$ docker run --rm -v certs:/etc/glauth/certs -v glauth-config:/app/config -it glauth/glauth:v1.1.0 sh /go # ls -la /etc/glauth/certs/ ... -rwxrwxrwx 1 root root 2499 Oct 27 17:53 cert.pem -rwxrwxrwx 1 root root 3267 Oct 27 17:53 key.pemBy the way, it would be helpful to add file name to log string: "LDAP Server Failed: open : no such file or directory". Otherwise I'm not sure that it complains about cert files, because the prefix is "LDAP Server", not "LDAPS Server".
sikmir commentedon Nov 17, 2018
I've removed
[ldaps]section from config, and result is the same:So, why GLAuth starts LDAPS server anyway?
darkguy2008 commentedon May 12, 2019
I had success with this:
docker-compose.yml:
config.cfg
Test credentials:
Quite cryptic, if I say the least.
Documentation is really scarse though. I'm concerned about user permissions: How do I set up admin users (those who I can connect with an LDAP admin app like Softerra's) to make changes, but avoid the other users I create with them (at least as a basic feature) to alter the users/server as well?
matttrach commentedon Sep 20, 2019
Quick reference:
docker pull glauth/glauthmkdir ldap; cd ldap; mkdir certs;cd certs; openssl req -newkey rsa:2048 -nodes -keyout domain.com.key -x509 -days 365 -out domain.comecho -n "mysecret" | openssl dgst -sha256docker run -d --rm --name ldap -p 389:389 -p 636:636 -v $PWD/certs:/app/config/certs -v $PWD/simple.cfg:/app/config/config.cfg glauth/glauthapt install ldap-utilsldapsearch -D "cn=jdoe,ou=admins,dc=domain,dc=com" -w mysecret -p 389 -h localhost -b "dc=domain,dc=com" -s sub "(objectclass=*)"Merge back from dev to feature branch step #2
Docker with plugins, first step (#215)
Dev (#254)
Fix/docker latest tag (#260)
Dev -> Master after v1/v2 cleanup (#261)
Feature/dbsshkeys (#262)
Dev -> Master get rid of old Docker files (#288)