LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-08-2013, 04:51 PM   #1
invader7
LQ Newbie
 
Registered: Jun 2011
Posts: 24

Rep: Reputation: Disabled
OpenCA authentication with LDAP server


Hello , i have an openca installation up and running and now i want to generate certificate requests througth the "Authenticated Browser Certificate Request" form.

It requires a valid ldap connection in order to bind user fields for the certificate.

I have configured LDAP Admin and connected to my ldap server in order to verify its working.

Now in openca i changed the settings in datasources.xml but i cant login.

My settings :

Code:
<datasources>
   <item>
      <name>the name of source</name>
      <type>ldap</type>
      <loa>Medium</loa>
      <address>example.com</address>
      <port>389</port>
      <attributes>
         <item>
            <name>basedn</name>
            <value>dc=example,dc=com</value>
         </item>
         <item>
            <name>loginattribute</name>
            <value>uid</value>
         </item>
         <item>
            <name>protocol</name>
            <value>ldap</value>
         </item>
         <item>
            <name>sslversion</name>
            <value>tlsv1</value>
         </item>
         <item>
            <name>sslverify</name>
            <value>none</value>
         </item>
         <item>
            <name>sslciphers</name>
            <value />
         </item>
         <item>
            <name>sslcapath</name>
            <value />
         </item>
         <item>
            <name>sslcafile</name>
            <value />
         </item>
      </attributes>
      <map>
         <entry>
            <name>dndUid</name>
            <value>userIdentifier</value>
         </entry>
      </map>
   </item>
</datasources>
SOLVED !!

{OpenCA DIR}/lib/openca/functions/datasource-utils.lib

at function dsLdapConnect added
Code:
if ( $protocol == "ldap") {
    $ldap = Net::LDAP->new($ds->{address},port => $ds->{port});
    return $ldap;
}

Last edited by invader7; 06-10-2013 at 03:59 AM. Reason: SOLVED
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication to AD and LDAP on the server imohammed Linux - Server 3 11-23-2012 03:45 PM
LDAP authentication server kamran.ayub Linux - Server 3 06-28-2012 09:26 AM
[SOLVED] LDAP authentication error [Can't contact LDAP server] from apache httpd jonathan_w_brown Linux - Server 6 12-28-2011 06:30 PM
Mail Server Authentication via LDAP RKris Linux - Networking 2 02-08-2004 06:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration