Trying to authenticate against LDAP server (all docker)

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
zuka1337
Posts: 21
Joined: Thu Jan 28, 2021 9:08 am

Trying to authenticate against LDAP server (all docker)

Post by zuka1337 »

Hello Guys,
Finally I'm able to create acc here, that was an impossible task.
For your knowledge, I'm testing Ldap with the lastest version of cacti 1.2.16 and I've never setup an LDAP authenticaction before I'm learning on the GO please don't judge me :) .

All the tests are done in docker, images I'm Using:

smcline06/cacti
mariadb:latest
osixia/openldap:latest


And ApacheDS to create ldap config (group, user etc).


Setup Process.

Docker
  • docker-compose up (Will setup all default config for you, yml file attached)
  • Here you can also see real time ldap-server logs
Ldap Server
  • Open ApacheDS add new connection (the ldap server you just created)
  • Import the ldif file attached.
You should see something like this:
apache_studio.png
apache_studio.png (19.47 KiB) Viewed 939 times


Cacti Setup
  • Open Cacti on localhost and install it
  • Create a Ldap_guest account out of guest user and another Ldap_admin out of admin
  • Add a new User Domain and it's configuration against the docker server
ldap_config.png
ldap_config.png (79.28 KiB) Viewed 939 times



Ok after all this here is the catch.

The initial idea was to create 2 domain entrys for authenticaction of two groups withim this ldap server.
But I'm not able to authenticate any of the users of the ldap server.

Can tou guys give me any suggestion please?


docker-compose/ldiff files attached.
Ldapteste3.zip
(1.41 KiB) Downloaded 47 times
Last edited by zuka1337 on Thu Jan 28, 2021 10:15 am, edited 1 time in total.
Github https://github.com/zuka1337
Killspikealt https://github.com/zuka1337/killspikealt "Graphical Interface to Remove Spikes"
Spikepyrrd https://github.com/zuka1337/Spikepyrrd "Python Script to remove spikes from graph"
User avatar
zuka1337
Posts: 21
Joined: Thu Jan 28, 2021 9:08 am

Re: Trying to authenticate against LDAP server (all docker)

Post by zuka1337 »

Most info about this topic I've found here:

Official Documentation
https://github.com/Cacti/documentation/ ... th-LDAP.md

ean mancini
https://www.youtube.com/watch?v=nateGK7xcnA&t=7s

jhon fredy herrera osorno
https://www.youtube.com/watch?v=ZvsCLloUNaQ&t=526s

PAUL
https://omgwtfbbq.ca/2016/09/cacti-ldap ... directory/

The rest is just topics without an solution or no response at all.
Github https://github.com/zuka1337
Killspikealt https://github.com/zuka1337/killspikealt "Graphical Interface to Remove Spikes"
Spikepyrrd https://github.com/zuka1337/Spikepyrrd "Python Script to remove spikes from graph"
User avatar
zuka1337
Posts: 21
Joined: Thu Jan 28, 2021 9:08 am

Re: Trying to authenticate against LDAP server (all docker)

Post by zuka1337 »

Well,

I got some news, I'm able to login with an specific user using an specific search Base.

specific Search Base.png
specific Search Base.png (87.69 KiB) Viewed 813 times
How can I authenticate an entire group?
I've tryied everithing..

After this, I'll make an full tutorial on how to get this working, cuz this is a pain in the head.

Thank you for your views an 0 comments on the post, it helps a lot.
Github https://github.com/zuka1337
Killspikealt https://github.com/zuka1337/killspikealt "Graphical Interface to Remove Spikes"
Spikepyrrd https://github.com/zuka1337/Spikepyrrd "Python Script to remove spikes from graph"
User avatar
zuka1337
Posts: 21
Joined: Thu Jan 28, 2021 9:08 am

Re: Trying to authenticate against LDAP server (all docker)

Post by zuka1337 »

Update:

When Setting group membership Cacti is Unable to login:
fail.png
fail.png (45.27 KiB) Viewed 812 times
member.png
member.png (29.65 KiB) Viewed 812 times
Github https://github.com/zuka1337
Killspikealt https://github.com/zuka1337/killspikealt "Graphical Interface to Remove Spikes"
Spikepyrrd https://github.com/zuka1337/Spikepyrrd "Python Script to remove spikes from graph"
User avatar
zuka1337
Posts: 21
Joined: Thu Jan 28, 2021 9:08 am

Re: Trying to authenticate against LDAP server (all docker)

Post by zuka1337 »

Update:
I've manage to login all users of an group with the follow configuration:
ldap.png
ldap.png (32.02 KiB) Viewed 805 times
Github https://github.com/zuka1337
Killspikealt https://github.com/zuka1337/killspikealt "Graphical Interface to Remove Spikes"
Spikepyrrd https://github.com/zuka1337/Spikepyrrd "Python Script to remove spikes from graph"
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests