Login via LDAP + Sort album names - Page 2 Login via LDAP + Sort album names - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Login via LDAP + Sort album names

Started by Vincent, June 12, 2004, 04:43:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vimets

Ok, thanks anyway :)
I've done my own modifications to this ldap.php in order to login.
I update the file just in case anyone needs some help cause there's no much info about coppermine ldap 1.3 over the internet due to the outdated version.

Thanks again
bless!

vimets

Hi again, i upload a new "version" of the file.
Changes:
- Passwords stored in md5
- Check length of password field in the DB in order to enable > 50 for md5
- Updates the user password when it changes
- Some bug fixes and extra elses added in case password incorrect, user incorrect, etc...

Bless!

Αndré

There's no support in feature requests. There's also no support for outdated galleries. However, there's an LDAP bridge file for cpg1.5.x available, so if you need support, upgrade to the latest stable release of cpg1.5.x (currently 1.5.22).

vimets

Quote from: Αndré on January 22, 2013, 10:46:29 AM
There's no support in feature requests. There's also no support for outdated galleries. However, there's an LDAP bridge file for cpg1.5.x available, so if you need support, upgrade to the latest stable release of cpg1.5.x (currently 1.5.22).

Hi, I know, that's why this is posted in No Support :)
I posted this, as i said before, because maybe someone still uses 1.3 and needs LDAP bridge, and the one that is on the first page here, doesn't work.
Maybe i asked for support on previous posts, but I end up making my own login.php for ldaps logins based on this one, and i was just postting it, no support is needed :)
bless

Αndré

Sorry, I missed the second page of this thread (thus I've just read your first post on page one).

Thank you for your contribution!

vimets

Quote from: Αndré on January 22, 2013, 12:41:34 PM
Sorry, I missed the second page of this thread (thus I've just read your first post on page one).

Thank you for your contribution!

:) no problem i don't wanna bother anymore, hope this will be useful to someone.
bless! and thanks for your time!

phill104

Far from it. It is always a pleasure to see new contributions to Coppermine. Many thanks once again and hope to see you stick around.
It is a mistake to think you can solve any major problems just with potatoes.

LnQ

Thanks Viments...i want to use your modification
so here i go.

/* ============== O P T I O N S =========== */

   $CONFIG['ldapserver'] = 'domain controller'; // here I can type in the ip or hostname?
   $CONFIG['ldapdn'] = 'ou=Users,dc=int,dc=test,dc=com'; // If my domain is int.test.com it should be like this right
   $CONFIG['ldapforcehttps'] = '0'; // or '0' to deactivate
   define('LDAP_SERVER',  $CONFIG['ldapserver']);
   define('LDAP_DN',  $CONFIG['ldapdn']);
   define('LDAP_FORCE_HTTPS', $CONFIG['ldapforcehttps']);
   define('LDAP_DEBUG', 0);
   define('PHP_SELF', $_SERVER['SCRIPT_NAME']);
   define('CPG_DB_SERVER', $CONFIG['localhost']); //localhost is fine here or can i use ip/hostname?
   define('CPG_DB_USER', $CONFIG['galleri']); //username for the db account right?
   define('CPG_DB_PASSWORD', $CONFIG['dbpass']); //db pass for the db user right?
   define('CPG_DB_NAME', $CONFIG['galleri']); // db name.
   define('CPG_DB_USERS', $CONFIG['TABLE_PREFIX']."users");
   define('CPG_DB_SESSIONS', $CONFIG['TABLE_PREFIX']."sessions");

this login.php does it work with 1.3.0? can see in the top it for Coppermine Photo Gallery 1.3.2   

LnQ

LDAP_DEBUG = 0

if i set it to 1 does it generate a log?

vimets

Quote from: LnQ on February 28, 2013, 10:42:08 AM
Thanks Viments...i want to use your modification
so here i go.

/* ============== O P T I O N S =========== */

   $CONFIG['ldapserver'] = 'domain controller'; // here I can type in the ip or hostname?
   $CONFIG['ldapdn'] = 'ou=Users,dc=int,dc=test,dc=com'; // If my domain is int.test.com it should be like this right
   $CONFIG['ldapforcehttps'] = '0'; // or '0' to deactivate
   define('LDAP_SERVER',  $CONFIG['ldapserver']);
   define('LDAP_DN',  $CONFIG['ldapdn']);
   define('LDAP_FORCE_HTTPS', $CONFIG['ldapforcehttps']);
   define('LDAP_DEBUG', 0);
   define('PHP_SELF', $_SERVER['SCRIPT_NAME']);
   define('CPG_DB_SERVER', $CONFIG['localhost']); //localhost is fine here or can i use ip/hostname?
   define('CPG_DB_USER', $CONFIG['galleri']); //username for the db account right?
   define('CPG_DB_PASSWORD', $CONFIG['dbpass']); //db pass for the db user right?
   define('CPG_DB_NAME', $CONFIG['galleri']); // db name.
   define('CPG_DB_USERS', $CONFIG['TABLE_PREFIX']."users");
   define('CPG_DB_SESSIONS', $CONFIG['TABLE_PREFIX']."sessions");

this login.php does it work with 1.3.0? can see in the top it for Coppermine Photo Gallery 1.3.2

Hi there,
I only add the options $CONFIG, the rest were already there, which i assume that are correct as you say.  The first $CONFIG one depends on your dns, if the web server is capable of resolving the hostname, if not put the ip that will work for sure. Then, if you configured the LDAP you should know the branch of the tree where the users are hanging, so the domain would be as you said, but maybe the Organitzational Unit ( OU ) is diferent, remember also always case sensitive.  With a LDAP browser software you can easily see this :), and finally the last one is for securing the connection in case you have a Certificate and want to avoid a posible Man in the middle attack.
I haven't test it with 1.3.2, my version is 1.3.0 sorry.
Hope it helps, anything else let it know ;)
cya

By the way, the comments in the code are in catalan in case you wanna use a translator. Sorry about that.