Project

General

Profile

« Previous | Next » 

Revision 8410

Added by Jing Tao over 10 years ago

Get the some properties from the metacat.properties file.

View differences:

src/perl/ldapweb.cgi
1556 1556

  
1557 1557
#Method to get the next avaliable uid number. We use the mechanism - http://www.rexconsulting.net/ldap-protocol-uidNumber.html
1558 1558
sub getNextUidNumber {
1559
    my $base="cn=uidNext,dc=ecoinformatics,dc=org";
1560
    my $uid_attribute_name = "description";
1561
    my $maxAttempt = 300;
1559
    my $base=$properties->getProperty('ldap.nextuid.storing.dn');
1560
    my $uid_attribute_name = $properties->getProperty('ldap.nextuid.storing.attributename');
1561
    my $maxAttempt = $properties->getProperty('ldap.nextuid.maxattempt');
1562 1562
    
1563 1563
    my $ldapUsername = $ldapConfig->{'unaffiliated'}{'user'};
1564 1564
    my $ldapPassword = $ldapConfig->{'unaffiliated'}{'password'};

Also available in: Unified diff