I have tested it but it seems that it doesnt work, 18.2.5 bareos only works with pam_unix.so.
I am trying to approach how to automate creating tenants thats why im exploring this concept.
I will either test out a php-pam reset password or explore further the ldap one.
Hopefully will update this post as well
Was able to get the local users to authenticate but not with ldap users. It seems i misconfigured something on the directors.ini so it allowed anything to login
Now Im determining on what modules to add on the /etc/pam.d/bareos file to finally allow ldap authentication
I just used the sss module of pam since it was the one that handles authentication through our ldap server.
just affix this on your /etc/pam.d/bareos
"auth required pam_sss.so"