<< Back
Message for this thread
Posted by Messages text
Endoh Daiji

Noavatar
Total post : 12
> Profile
Written on : 26/02/2009 12:06 ( more than one month )
Object : How to use two LDAP servers
I am a Japanese user of docebo and have a question about LDAP.
In our university, there are two LDAP servers. One is for Teachers and the other is for students.  
How do I set two LDAP servers for docebo server.
I think "configuration -> LDAP parameters" is a key for setting.

Joining two IPs with semi-collon ? Such as ...

192.168.1.1; 172.20.166.4

 
Erba Claudio

Avatar
Total post : 2688
> Profile
Written on : 01/03/2009 20:51 ( more than one month )
Object : Re: How to use two LDAP servers
University of milan had the same problem but i don't remeber how thay solved it.
I try to push them to give you an answer Tongue out
Claudio 
Docebo CEO and Founder
www.docebo.com
 
gparasiliti

Noavatar
Total post : 81
> Profile
Written on : 02/03/2009 14:25 ( more than one month )
Object : Re: How to use two LDAP servers
Hi,

Sometime ago I did something about it, but my problem was to use many LDAP servers,  all servers were a copy of the main... many mirrors.

I modified the code in the .php file that manage authentication.

I think you can manage your LDAP configuration adding some control in the .php file.

Bye,
Giuseppe
Domani e' un'altro giorno...

<-----------> www.ilnulla.it <----------->
 
Endoh Daiji

Noavatar
Total post : 12
> Profile
Written on : 10/03/2009 04:21 ( more than one month )
Object : Re: How to use two LDAP servers
I am very appliciate to your suggestions. And I will try to read some .php files.
But, there are so many .php files in doceboCore folder.

I now study about LDAP module of php to configure .php files.

Please give me a hint or hints about what .php file in docebo system should be refered.

With best wishes,

Daiji Endoh
 
gparasiliti

Noavatar
Total post : 81
> Profile
Written on : 10/03/2009 20:55 ( more than one month )
Object : Re: How to use two LDAP servers
Hi,

the file you are looking for is :

doceboCore/lib/lib.user.php

The code seems to start at the line 234 and it finish at the line 265.

I think you need to follow some step:

Is the user in login, a student or a teacher?

Follow the answer you can interrogate the correct server, you can store the two server ips separated by a colon in the docebo admin area, and then you can split the two addresses by php code.

I think that the implementation isn't impossible.

Bye,
Giuseppe
Domani e' un'altro giorno...

<-----------> www.ilnulla.it <----------->
 
Endoh Daiji

Noavatar
Total post : 12
> Profile
Written on : 12/03/2009 02:14 ( more than one month )
Object : Re: How to use two LDAP servers
Thank you very much!!

I found it and can read it.
You use ldap functions in php.

Definition of ldap server is wrote in "if(!$ldap_conn.....)

I will follow the code and modify for use.

But still a question,

What is $GLOBALS ? And Where is this defined ?

Thank you again.

Daiji Endoh
 
gparasiliti

Noavatar
Total post : 81
> Profile
Written on : 12/03/2009 11:14 ( more than one month )
Object : Re: How to use two LDAP servers

$GLOBALS is a service matrix to store many informations and to share the content in various functions.

Bye,
Giuseppe
Domani e' un'altro giorno...

<-----------> www.ilnulla.it <----------->
 
Endoh Daiji

Noavatar
Total post : 12
> Profile
Written on : 23/03/2009 11:48 ( more than one month )
Object : Re: How to use two LDAP servers
Hello!

We have been try to join docebo to ActiveDirectory of Windows2003. And today, we found that docebo-codes for LDAP basically support open LDAP. If I need to use ActiveDirectory, I must modify php code for LDAP.

Does anyone use ActiveDirectory on Windows2003 server as LDAP server of docebo?

Daiji Endoh
 
<< Back