Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

LDAP integration

Locked
jacky
Posts: 10
Joined: Wed Apr 22, 2015 9:50 am

LDAP integration

Unread post by jacky »

Hello,
I am currently working in a research laboratory in France.
Your product nuBuilderPro seems very interesting to anyone that kind of application development.
Unfortunately in nuBuilderPro I do not see LDAP authentication .
Nowadays it is important , even essential to be able to have a centralized authentication such as LDAP .

For example, it is found in applications like GRR
http://grr.devome.com/?lang=en

Could you think about it? is more certain in the future for nuBuilderPro .
Also the possibility of making all applications developed multilingual version is important.
Congratulations for your work.

Good day,
Jacky
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: LDAP integration

Unread post by admin »

Jacky,

The Translations Form on the Setup Tab will allow you to change English phrases used.

http://wiki.nubuilder.net/index.php/Con ... ranslation

LDAP isn't a high priority for us but if a big company that needs to wants to submit some code that does it we would certainly consider it.

Steven
jacky
Posts: 10
Joined: Wed Apr 22, 2015 9:50 am

Re: LDAP integration

Unread post by jacky »

Hello,
Here LDAP authentication works with nuBuilderpro

Make sure on the server to have the php ldap Module
otherwise
aptitude install php5-ldap

in nuapi.php file

---> function nuLogin($u, $p) {


I just added this:

-------
$ldaprdn = 'uid='.$u.',ou=People,dc=server-xxx,dc=fr'; // DN ou RDN LDAP
$ldapconn = ldap_connect("ldap.server-xxx.fr");

if ($ldapconn) {
// LDAP server connection
$ldapbind = @ldap_bind($ldapconn, $ldaprdn, $p);
// Check authentication


if ($ldapbind) {
# Authentification LDAP SUCCESS
$s = "
SELECT *
FROM zzzsys_user
WHERE sus_login_name = '$u' AND zzzsys_user_id != 'globeadmin'
";
}
}
-------

Here is my nuapi.php file attachment.
This is just to show you that it's not complicated to add it to Nubuilder
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: LDAP integration

Unread post by admin »

.
Locked