CAS 4.2.x deployerConfigContext.xml连接到LDAP

时间:2016-08-01 20:14:39

标签: java spring cas

你们有没有人可以分享CAS 4.2.x deployerConfigContext.xml来连接LDAP?

我使用的是以下配置,但是它的LDAP身份验证失败了:

  

错误[org.ldaptive.pool.BlockingConnectionPool] - < [org.ldaptive.pool.BlockingConnectionPool@1473822750 :: name = search-pool,poolConfig = [org.ldaptive.pool.PoolConfig@338070642 :: minPoolSize = 1,maxPoolSize = 10,validateOnCheckIn = false,validateOnCheckOut = false,validatePeriodically = true,validatePeriod = 300],activator = null,passivator = null,validator = [org.ldaptive.pool.SearchValidator@1077644989 :: searchRequest = [org。 ldaptive.SearchRequest@-1624038438 :: baseDn =,searchFilter = [org.ldaptive.SearchFilter@1642584434 :: filter =(objectClass = *),parameters = {}],returnAttributes = [1.1],searchScope = OBJECT,timeLimit = 0 ,sizeLimit = 1,derefAliases = null,typesOnly = false,binaryAttributes = null,sortBehavior = UNORDERED,searchEntryHandlers = null,searchReferenceHandlers = null,controls = null,referralHandler = null,intermediateResponseHandlers = null]] pruneStrategy = [org.ldaptive.pool .IdlePruneStrategy @ 742722732 :: prunePeriod = 300,idleTime = 600],connectOnCreate = true,connectionFactory = [org.ldaptive.DefaultConne ctionFactory @ 47665555 :: provider=org.ldaptive.provider.jndi.JndiProvider@1bbee59c,config = [org.ldaptive.ConnectionConfig@620183 :: ldapUrl = xxxx,connectTimeout = 3000,responseTimeout = -1,sslConfig = null,useSSL = false,useStartTLS = false,connectionInitializer = [org.ldaptive.BindConnectionInitializer@1374011571 :: bindDn = cn = Directory Manager,dc = uss,dc = net,bindSaslConfig = null,bindControls = null]]],initialized = false,availableCount = 0,activeCount = 0]无法连接到ldap>

location ~ \.php$ {
        try_files $uri =404;
        fastcgi_pass 127.0.0.1:9000;
        # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params; 
}
if (!-e $request_filename) {
    rewrite ^.*$ /index.php last;
 }

1 个答案:

答案 0 :(得分:1)

这通常意味着与ldap的连接失败。确保您的凭据,URL和其他设置正确无误。