2015-11-06 10 views
5

एलडीएपी 1.4 से उन्नयन के बाद एडी लॉगिन संभव नहीं है। ट्रेस में लॉग निम्न त्रुटि संदेश लॉग होता है:सोनारक्यूब 5.2, एलडीएपी प्लगइन 1.5: com4j.ComException

DEBUG web[o.s.p.l.w.WindowsUsersProvider] Requesting details for user: xxxxxx 
ERROR web[rails] Error from external users provider: exception Java::Com4j::ExecutionException: com4j.ComException: 8007203a Failed to MkParseDisplayName : The server is not operational. : .\com4j.cpp:217 

sonar.properties मदद नहीं की से एलडीएपी सेटिंग निकाली जा रही। एलडीएपी 1.4 में डाउनग्रेड करने के बाद सबकुछ फिर से काम करता है। क्या हमने कुछ कॉन्फ़िगरेशन सेटअप याद किया?

+0

हमारे परिवेश में हम सीएन भाग में विशेष पात्रों का उपयोग कर रहे हैं: सीएन = डो \\, जॉन, ओयू = ..., डीसी = ... –

+0

हमने 64 बिट्स जावाएसई 1.8 (एमडी 64) का उपयोग करते हुए विंडोज 7 मशीन पर सोनारक्यूब 5.2 और एलडीएपी 1.5 (सोनार.सेक्योरिटी.रेम = एलडीएपी, एलडीएपी सर्वर ... = और कोई अन्य एलडीएपी सेटिंग्स => संगतता मोड = झूठी) स्थापित नहीं किया है। एक ही नेटवर्क: कोई त्रुटि नहीं!)। 2012 आर 2 मशीन पर एक ही सॉफ्टवेयर और कॉन्फ़िगरेशन का उपयोग करना: त्रुटि। हमने com4j-amd64.dll को com4j-2.1.jar से वेब \ deploy \ plugins \ ldap \ META-INF \ lib में निकाला पाया। सोनारक्वे को रोकने के बाद ही हटाना संभव है। –

+0

मुझे यह समस्या मिली: https://issues.jenkins-ci.org/browse/JENKINS-17718 क्या यह एक बच निकलने वाली समस्या हो सकती है? –

उत्तर

2

LDAP प्लगइन 1.5.1 इस समस्या के लिए फिक्स (LDAP-49 साथ SonarQube के अद्यतन के केंद्र से जारी किया गया है और डाउनलोड के लिए उपलब्ध

SonarQube LDAP plugin documentation पेज का संदर्भ लें:।

LDAP 1.5.1 - दिसम्बर 02 , 2015 - सोनारक्यूब 5.2+ सक्रिय निर्देशिका वातावरण के लिए बग फिक्स

+0

धन्यवाद; समस्या सुलझ गयी! –

-1
Please go through the new changes and try the below mentioned settings. 

LDAP 1.5 plugin is using Waffle to support Windows Authentication and SSO on Windows OS. 
LDAP in Windows auth mode supports two ways of login from browser: 

1.Single sign On 
SSO will be performed on hitting any SonarQube url other than /sessions/login . 
Only domain users are supported through SSO. 

2.Form based login from /sessions/login page 
Domain users 
Login: <domain\alias> or [email protected] or alias 
Password: <domain credentials> 

Technical users 
Login: <username> 
Password: <password> 

On logout, users will be presented login page (/sessions/login), 
where he can choose to login as technical user or domain user by 
passing appropriate credentials. 

    For those users who are already using previous version of LDAP plugin to 
connect to Microsoft AD and have already defined authorization in terms of those 
users and group name use following settings in Windows OS: 


# LDAP configuration 
sonar.security.realm=LDAP 
ldap.windows.compatibilityMode=true 
sonar.log.level=DEBUG (For debugging purpose, remove this if you don't see any issue) 
ldap.windows.auth=true 

----------------------------------------------------------------------- 

Default protocol is NTLM which should work for most of the scenarios. 
Troubleshooting NTLM 
◦Enabling NTLM Logging 
http://goo.gl/3LhU6E 

If you want to use Kerberos "Negotiate" protocol please use the following steps. 

Negotiate Authentication Steps: 
For negotiate authentication to work make sure following steps are followed: 
1.Browser Configuration 
Waffle link: Configuring Browsers (IE/Firefox) 
https://goo.gl/vcPnrk 

2.Kerberos setup 
Make sure that user has privilege for Kerberos delegation 
setspn -L username 
To add preivileges to the current user run 
setspn -S HTTP/machine:port machine 
example: 
setspn -S HTTP/machine:9000 machine 

3.The SonarQube application is running as a service(NT service) 
Troubleshooting Resources 
1.Useful Kerberos troubleshooting resources 
◦Enabling Kerberos Logging 
http://support.microsoft.com/kb/262177/en-us 
◦Troubleshooting Kerberos Delegation 
http://www.microsoft.com/en-us/download/confirmation.aspx?id=4754 
+0

DEBUG वेब [o.s.p.l.w.WindowsUsersProvider] उपयोगकर्ता के लिए विवरण का अनुरोध: xxxxx TRACE वेब [sql] time = 0ms | sql = cq.uuid का चयन करें ... TRACE वेब [sql] time = 0ms | sql = cq.uuid का चयन करें ... TRACE वेब [sql] time = 0ms | sql = cq.uuid का चयन करें ... TRACE वेब [sql] time = 0ms | sql = cq.uuid का चयन करें ... त्रुटि वेब [रेल] बाहरी उपयोगकर्ता प्रदाता से त्रुटि: अपवाद जावा :: कॉम 4j :: निष्पादन अपवाद: com4j.ComException: 8007203a MkParseDisplayName में विफल: सर्वर परिचालन नहीं है। :। com1j.cpp: 217 ट्रैस वेब [वर्ग] समय = 0ms | एसक्यूएल = चयन टी। * से (चयन करें ROW_NUMBER() .... DEBUG वेब [http] पोस्ट/सत्र/लॉगिन | समय = .... एमएस –

+0

विंडोज 2012 आर 2 –

+0

sonar.security.realm = एलडीएपी सोनार। authenticator.downcase = true ldap.servers = ए, बी ldap.A.url = ldap: // ए 1: 3268 ldap.A.user.baseDn = OU = ..., डीसी = ..., डीसी = ..., डीसी = ... ldap.A.user.request = (और (objectClass = उपयोगकर्ता) (sAMAccountName = {login})) ldap.A.bindDn = ... ldap.A.bindPassword = ... ldap.A.group.baseDn = OU = ..., डीसी = ..., डीसी = ..., डीसी = ... ldap.A.group.request = (& (objectClass = समूह) (सदस्य = {डीएन})) ldap.A.group.idAttribute = sAMAccountName ldap.B.url = ldap: // B1: 3268 ldap.B.user.baseDn = OU = ..., डीसी = ..., डीसी = ..., डीसी = ... .... ldap.B.group.idAttribute = sAMAccountName sonar.security .localUsers = .... –

संबंधित मुद्दे