commit
						fc5fc5b09c
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -127,16 +127,16 @@ if (config.ldap.enabled && LdapStrategy) {
 | 
			
		|||
        });
 | 
			
		||||
    }));
 | 
			
		||||
} else if (config.ldapauth.enabled && LdapAuthStrategy) {
 | 
			
		||||
    log.info("Using LDAP auth (passport-ldapauth)");
 | 
			
		||||
    log.info('Using LDAP auth (passport-ldapauth)');
 | 
			
		||||
    let opts = {
 | 
			
		||||
        server: {
 | 
			
		||||
            url: 'ldap://' + config.ldap.host + ':' + config.ldap.port,
 | 
			
		||||
	    searchBase: config.ldapauth.baseDN,
 | 
			
		||||
	    searchFilter: config.ldapauth.filter,
 | 
			
		||||
            searchBase: config.ldapauth.baseDN,
 | 
			
		||||
            searchFilter: config.ldapauth.filter,
 | 
			
		||||
            searchAttributes: [config.ldapauth.uidTag, 'mail'],
 | 
			
		||||
            bindDN: config.ldapauth.bindUser,
 | 
			
		||||
            bindCredentials: config.ldapauth.bindPassword
 | 
			
		||||
        },
 | 
			
		||||
        }
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    passport.use(new LdapAuthStrategy(opts, (profile, done) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,7 +15,7 @@ function getPage(listConf) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
function generateEmail() {
 | 
			
		||||
    return 'keep.' + shortid.generate() + '@mailtrain.org';
 | 
			
		||||
    return 'keep.' + shortid.generate() + '@gmail.com';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function generateCustomFieldValue(field) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue