Re: [OpenXPKI-users] OpenXPKI Login via internal LDAP Server

2017-01-13 Thread Oliver Welter

Hi Stefan,

there is a brief example for LDAP authentication now in the quickstart 
manual: 
http://openxpki.readthedocs.io/en/latest/reference/configuration/realm.html


I copied that from a running install, so it should do after adjusting 
the parameters.


Oliver

Am 11.01.2017 um 15:43 schrieb Oliver Welter:

Hi Stefan,

sorry my fault, Connector::Proxy::Net::LDAP is a base class which does
nothing. Put Connector::Builtin::Authentication::LDAP in your script,
that should work.

I will try to add a working example including an LDAP dump with the next
release.

Oliver

Am 11.01.2017 um 13:01 schrieb sharb...@t-online.de:

Hi Oliver,

the "$conn->get . . ." command ist not going. See this information.

URL:
http://search.cpan.org/~mrscotty/Connector-1.21/lib/Connector/Proxy/Net/LDAP/Single.pm


The following script runs without error.

#!/usr/bin/perl

# Ein erstes kleines Skript
# zur Verdeutlichung einiger Eigenheiten von Perl.

use Connector::Proxy::Net::LDAP;

my $conn = Connector::Proxy::Net::LDAP->new({
LOCATION => 'ldap://dsme01.xyz.de:9009',
base => 'dc=harnet,dc=de',
filter => '(cn=[% ARGS.0 %])',
});
## $conn->get( $username, { password => $passwd } );

I noticed that I must start the connector with use. Where is the
connector started in OpenXPKI? In which configuration file? I am also
not clear as I pass the web login the username and the password to the
connector? Do you have an extract from an LDAP tree and an example
configuration for OpenXPKI?



Thank you very much for your support Oliver




--

Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi



___
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users






--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi



___
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users




--
Protect your environment -  close windows and adopt a penguin!



smime.p7s
Description: S/MIME Cryptographic Signature
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users


Re: [OpenXPKI-users] OpenXPKI Login via internal LDAP Server

2017-01-11 Thread Oliver Welter

Hi Stefan,

sorry my fault, Connector::Proxy::Net::LDAP is a base class which does 
nothing. Put Connector::Builtin::Authentication::LDAP in your script, 
that should work.


I will try to add a working example including an LDAP dump with the next 
release.


Oliver

Am 11.01.2017 um 13:01 schrieb sharb...@t-online.de:

Hi Oliver,

the "$conn->get . . ." command ist not going. See this information.

URL:
http://search.cpan.org/~mrscotty/Connector-1.21/lib/Connector/Proxy/Net/LDAP/Single.pm

The following script runs without error.

#!/usr/bin/perl

# Ein erstes kleines Skript
# zur Verdeutlichung einiger Eigenheiten von Perl.

use Connector::Proxy::Net::LDAP;

my $conn = Connector::Proxy::Net::LDAP->new({
LOCATION => 'ldap://dsme01.xyz.de:9009',
base => 'dc=harnet,dc=de',
filter => '(cn=[% ARGS.0 %])',
});
## $conn->get( $username, { password => $passwd } );

I noticed that I must start the connector with use. Where is the
connector started in OpenXPKI? In which configuration file? I am also
not clear as I pass the web login the username and the password to the
connector? Do you have an extract from an LDAP tree and an example
configuration for OpenXPKI?



Thank you very much for your support Oliver




--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi



___
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users




--
Protect your environment -  close windows and adopt a penguin!



smime.p7s
Description: S/MIME Cryptographic Signature
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users


Re: [OpenXPKI-users] OpenXPKI Login via internal LDAP Server

2017-01-11 Thread sharb...@t-online.de
Hi Oliver,
the "$conn->get . . ." command ist not going. See this information.
URL: 
http://search.cpan.org/~mrscotty/Connector-1.21/lib/Connector/Proxy/Net/LDAP/Single.pm

The following script runs without error.
#!/usr/bin/perl
# Ein erstes kleines Skript
# zur Verdeutlichung einiger Eigenheiten von Perl.
use Connector::Proxy::Net::LDAP;
my $conn = Connector::Proxy::Net::LDAP->new({
LOCATION => 'ldap://dsme01.xyz.de:9009',
base => 'dc=harnet,dc=de',
filter => '(cn=[% ARGS.0 %])',
});
## $conn->get( $username, { password => $passwd } );
I noticed that I must start the connector with use. Where is the connector 
started in OpenXPKI? In which configuration file? I am also not clear as I 
pass the web login the username and the password to the connector? Do you 
have an extract from an LDAP tree and an example configuration for 
OpenXPKI?
 
Thank you very much for your support Oliver
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users


Re: [OpenXPKI-users] OpenXPKI Login via internal LDAP Server

2017-01-08 Thread Oliver Welter

Hi Stefan,

did you install the required LDAP modules for perl? This looks a bit 
like an error creating the LDAP connector.


Try to run the connector stand alone from a perl script:


my $conn = Connector::Proxy::Net::LDAP->new({
put params from handler.yaml here
});
$conn->get( $username, { password => $passwd } );

Oliver


Am 07.01.2017 um 19:55 schrieb sharb...@t-online.de:

Hi Oliver,

thank you for the hint. Your solution approach does not work with me. No
matter what I change, the following error always occurs:

check for cgi session, fcgi pid 31113
session id (front) is e2c05473ad814bf24bd0f46965057c4e
Use provide client instance
First session reinit with id 5c5a3c3376b68a91e77dcedb6c5c396b
Resume backend session with id 5c5a3c3376b68a91e77dcedb6c5c396b
current session status GET_PASSWD_LOGIN
not logged in - doing auth - page is - action is login!password
Selected realm , new status GET_PASSWD_LOGIN
Requested login type PASSWD
Seems to be an auth try - validating
Server Error Msg: $VAR1 = {
'SERVICE_MSG' => 'ERROR',
'LIST' => [
{
'LABEL' => 'I18N_OPENXPKI_SERVICE_DEFAULT_HANDLE_MESSAGE_FAILED',
'PARAMS' => {
'__EVAL_ERROR__' => 'Can\'t locate object method "message" via package
"Can\'t use an undefined value as an ARRAY reference at
/usr/lib/x86_64-linux-gnu/perl5/5.20/OpenXPKI/Server/Authentication/Connector.pm
line 97.
" (perhaps you forgot to load "Can\'t use an undefined value as an ARRAY
reference at
/usr/lib/x86_64-linux-gnu/perl5/5.20/OpenXPKI/Server/Authentication/Connector.pm
line 97.
"?) at
/usr/lib/x86_64-linux-gnu/perl5/5.20/OpenXPKI/Server/Authentication.pm
line 256.
',
'__MESSAGE_NAME__' => 'GET_PASSWD_LOGIN'
}
}
]
};
I18N_OPENXPKI_SERVICE_DEFAULT_HANDLE_MESSAGE_FAILED"

There is something wrong with the code. Who wrote the "Connector.pm"
code? You see errors in the program Code?



Thank you for your support, by Stefan Harbich




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot



___
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users




--
Protect your environment -  close windows and adopt a penguin!



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users