Bacula-users

Re: [Bacula-users] Baculum and LDAP authentication

2017-07-24 03:59:49
Subject: Re: [Bacula-users] Baculum and LDAP authentication
From: Daniel Heitepriem <daniel.heitepriem AT pribas DOT com>
To: Marcin Haba <ganiuszka AT gmail DOT com>
Date: Mon, 24 Jul 2017 09:42:34 +0200
Hello Marcin,

thanks for your answer. I tried Baculum 7.4.7 with a plain configuration and auth user file "baculum.users" but got the same "Error 6". Baculum 9.0.1 is working on the same host without any problems. So it seems like the problem isn't related to LDAP based authentication.

Regards,
Daniel

Am 21.07.17 um 13:28 schrieb Marcin Haba:
Hello Daniel,

I think that it isn't possible to use LDAP authentication with the Baculum 7.4.

The Baculum 7.4 uses auth user file (baculum.users) to store users and
this file is used both by web server and the Baculum itself.

In the Baculum version 9.0 there are two baculum.users files: one for
the web GUI and one for the API part. Also the meaning of the
baculum.users file is changed in 9.0 because it is used only by web
server, and the Baculum GUI and Baculum API only enable to save users
to these files.

I think that more possible it could be use LDAP authentication with
the Baculum 9.0 (for Web GUI or API or both) but the important note is
that in 9.0 the restricted consoles support is a bit changed.
Restricted consoles are possible to define for OAuth2 per API client,
but for Basic authentication the restricted consoles are unavailable.

If you don't use restricted consoles then you can try with 9.0
version. Next week should be available binary packages for this
version.

Best regards.
Marcin Haba (gani)

On 21 July 2017 at 09:32, Daniel Heitepriem
<daniel.heitepriem AT pribas DOT com> wrote:
Hi everyone,

I'm trying to get Baculum to work with LDAP authentication. The basic
authentication when accessing the wizard of a fresh install is working fine
but after completing the wizard I'm stuck as I get the error "Error 6 -
authorization to Baculum error." and no error in Apache error log nor in
baculum.dbg Below is my Apache Auth-config for Baculum and the content of
baculum.dbg.

Apache config:
         <Directory /opt/baculum>
                 Order allow,deny
                 Allow from all
                 Options +FollowSymLinks
                 RewriteEngine On
                 RewriteCond %{REQUEST_FILENAME} !-d
                 RewriteCond %{REQUEST_FILENAME} !-f
                 RewriteRule ^(.*)$ index.php/$1 [L]
                 AuthName "Baculum Auth"
                 AuthBasicProvider ldap
                 AuthType Basic
                 AuthLDAPURL
"ldap://IP:389/ou=staff,ou=people,dc=example,dc=com?uid";
                 AuthLDAPBindDN "cn=baculum,ou=LDAPauth,dc=example,dc=com"
                 AuthLDAPBindPassword "SecretPassword"
                 Require valid-user
                 LDAPReferrals Off
         </Directory>

baculum.dbg:
Jul 21 07:31:52 [Debug] [Application] Command=setUrlParams, Output=

EXECUTE URL ==> http://10.1.10.243:9095/directors?director= <==

, File=/opt/baculum/protected/Class/API.php, Line=138 (line 89,
/opt/baculum/protected/Class/Logging.php)
Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput,
Output={"output":"Problem with authorization to Baculum WebGUI.","error":6},
File=/opt/baculum/protected/Class/API.php, Line=256 (line 89,
/opt/baculum/protected/Class/Logging.php)
Jul 21 07:31:53 [Debug] [Application] Command=preParseOutput,
Output=stdClass Object
(
     [output] => Problem with authorization to Baculum WebGUI.
     [error] => 6
)
, File=/opt/baculum/protected/Class/API.php, Line=277 (line 89,
/opt/baculum/protected/Class/Logging.php)

Thanks in advance and regards,
Daniel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>

ADSM.ORG Privacy and Data Security by https://kimlaw.us