संगठन से बाहर के उपयोगकर्ताओं के लिए पुष्टि करने की सुविधा चालू करना

Edge for Private Cloud v. 4.17.09

इस सेक्शन में बताया गया है कि उपयोगकर्ता की पुष्टि करने के लिए, बाहरी LDAP सेवा को इंटिग्रेट करने के लिए ज़रूरी कॉम्पोनेंट को कैसे पाएं, इंस्टॉल करें, और कॉन्फ़िगर करें.

ज़रूरी शर्तें

  • आपके पास Apigee Edge for Private Cloud 4.17.09 इंस्टॉल होना चाहिए.
  • यह इंस्टॉलेशन करने के लिए, आपके पास Apigee Edge for Private Cloud पर ग्लोबल सिस्टम एडमिन के क्रेडेंशियल होने चाहिए.
  • आपको अपने Apigee Edge for Private Cloud को इंस्टॉल करने की रूट डायरेक्ट्री के बारे में पता होना चाहिए. डिफ़ॉल्ट रूट डायरेक्ट्री /opt है.
  • आपको बाहरी LDAP में अपने Edge ग्लोबल सिस्टम एडमिन क्रेडेंशियल जोड़ने होंगे. याद रखें कि डिफ़ॉल्ट रूप से, sysadmin क्रेडेंशियल, Edge के अंदरूनी LDAP में सेव किए जाते हैं. बाहरी LDAP पर स्विच करने के बाद, आपके सिस्टम एडमिन क्रेडेंशियल की पुष्टि वहां की जाएगी. इसलिए, Edge में बाहरी पुष्टि करने की सुविधा चालू करने से पहले, आपको बाहरी सिस्टम के लिए क्रेडेंशियल का प्रावधान करना होगा.

    उदाहरण के लिए, अगर आपने ग्लोबल सिस्टम एडमिन क्रेडेंशियल के साथ प्राइवेट क्लाउड के लिए Apigee Edge को इस तौर पर कॉन्फ़िगर और इंस्टॉल किया है:

    उपयोगकर्ता नाम: edgeuser@mydomain.com
    पासवर्ड: Secret123

    इसके बाद, Secret123 पासवर्ड के साथ उपयोगकर्ता edgeuser@mydomain.com, भी बाहरी LDAP में मौजूद होना चाहिए.
  • अगर एक मैनेजमेंट सर्वर क्लस्टर चलाया जा रहा है, तो ध्यान रखें कि आपको हर मैनेजमेंट सर्वर के लिए, इस दस्तावेज़ में बताए गए सभी चरणों को पूरा करना होगा.

बाहरी ऑथेंटिकेशन को कॉन्फ़िगर करना

आपकी मुख्य गतिविधि management-server.properties फ़ाइल को कॉन्फ़िगर करने की होगी. इस गतिविधि में Edge मैनेजमेंट सर्वर को बंद करना और चालू करना शामिल है. साथ ही, यह तय किया जाता है कि आपको डायरेक्ट बाइंडिंग का इस्तेमाल करना है या इनडायरेक्ट बाइंडिंग का, संवेदनशील क्रेडेंशियल को एन्क्रिप्ट करना, और इससे जुड़े अन्य टास्क.

  1. अहम जानकारी: अभी तय करें कि आपको पुष्टि करने का, इनडायरेक्ट तरीका इस्तेमाल करना है या डायरेक्ट बाइंडिंग का. इस फ़ैसले से, कॉन्फ़िगरेशन के कुछ पहलुओं पर असर पड़ेगा. बाहरी उपयोगकर्ता से पुष्टि करने का तरीका देखें.
  2. अहम जानकारी: अगर एक से ज़्यादा Apigee Edge मैनेजमेंट सर्वर इस्तेमाल किया जा रहा है, तो आपको कॉन्फ़िगरेशन के इन चरणों को पूरा करना होगा.
  3. टेक्स्ट एडिटर में /opt/apigee/customer/application/management-server.properties खोलें. अगर फ़ाइल मौजूद नहीं है, तो उसे बनाएं.
  4. नीचे दी गई लाइन जोड़ें. ध्यान दें: पक्का करें कि लाइन के आखिर में ट्रेल के आखिर में कोई स्पेस न छूटा हो.

    conf_security_authentication.user.store=externalized.authentication

    यह लाइन, आपके Edge for Private Cloud इंस्टॉलेशन में, पुष्टि करने वाली बाहरी सुविधा जोड़ती है.
  5. इस चरण को आसान बनाने के लिए, हमने दो अच्छे टिप्पणी किए गए सैंपल कॉन्फ़िगरेशन बनाए हैं. एक कॉन्फ़िगरेशन सीधे तौर पर और दूसरा, इनडायरेक्ट बाइंडिंग ऑथेंटिकेशन के लिए. आपको जिस बाइंडिंग का इस्तेमाल करना है उसके लिए नीचे दिए गए सैंपल देखें और कॉन्फ़िगरेशन पूरा करें:

    डायरेक्ट बाइंडिंग कॉन्फ़िगरेशन सैंपल
    डायरेक्ट बाइंडिंग कॉन्फ़िगरेशन सैंपल
  6. मैनेजमेंट सर्वर को रीस्टार्ट करें:
    > /opt/apigee/apigee-service/bin/apigee-serviceedge-management-server start
  7. पुष्टि करें कि सर्वर काम कर रहा है:
    > /opt/apigee/apigee-service/bin/apigee-all status
  8. अहम जानकारी: आपको इन स्थितियों में से किसी एक (या दोनों) के तहत अतिरिक्त कॉन्फ़िगरेशन करना होगा: (a) अगर आप चाहते हैं कि उपयोगकर्ता ऐसे उपयोगकर्ता नामों का इस्तेमाल करके लॉग इन करें जो ईमेल पते नहीं हैं. इस मामले में, आपके सिस्टम को ऐक्सेस करने वाले उपयोगकर्ता को उपयोगकर्ता नाम और/या (b) से भी पुष्टि करनी होगी. ऐसा तब करना होगा, जब बाहरी एलडीएपी में आपके सिस्टम उपयोगकर्ता खाते का पासवर्ड, उस पासवर्ड से अलग हो जिसे आपने पहली बार प्राइवेट क्लाउड के लिए Apigee Edge इंस्टॉल करते समय कॉन्फ़िगर किया था. अलग-अलग sysadmin क्रेडेंशियल के लिए ज़रूरी कॉन्फ़िगरेशन देखें.

डायरेक्ट बाइंडिंग कॉन्फ़िगरेशन सैंपल

## The first property is always required to enable the external authorization feature. Do not change it.
conf_security_externalized.authentication.implementation.class=com.apigee.rbac.impl.LdapAuthenticatorImpl

## Identify the type of binding:
# Set to "true" for direct binding
# Set to "false" for indirect binding. 
conf_security_externalized.authentication.bind.direct.type=true

## The next seven properties are needed regardless of direct or indirect binding. You need to configure these per your external authentication installation. 
## The IP or domain for your external LDAP instance. 
conf_security_externalized.authentication.server.url=ldap://localhost:389

## Your external LDAP server version.
conf_security_externalized.authentication.server.version=3

## The server timeout in milliseconds. 
conf_security_externalized.authentication.server.conn.timeout=50000

## Change these baseDN values to match your external LDAP service. This attribute value will be provided by your external LDAP administrator, and may have more or fewer dc elements depending on your setup.
conf_security_externalized.authentication.user.store.baseDN=dc=apigee,dc=com

## Do not change this search string. It is used internally. 
conf_security_externalized.authentication.user.store.search.query=(&(${userAttribute}=${userId}))

## Identifies the external LDAP property you want to bind against for Authentication. For example if you are binding against an email address, this would typically be in the userPrincipalName property in your external LDAP instance. Alternatively if you are binding against the user’s ID, this would typically be in the sAMAccountName property:
conf_security_externalized.authentication.user.store.user.attribute=userPrincipalName

## The LDAP attribute where the user email value is stored. For direct binding, set it to userPrincipalName.
conf_security_externalized.authentication.user.store.user.email.attribute=userPrincipalName

## ONLY needed for DIRECT binding.
## The direct.bind.user.directDN property defines the string that is used for the bind against the external authentication service. Ensure it is set as follows:
conf_security_externalized.authentication.direct.bind.user.directDN=${userDN}

इंडायरेक्ट बाइंडिंग कॉन्फ़िगरेशन सैंपल

## Required to enable the external authorization feature. Do not change it.
conf_security_externalized.authentication.implementation.class=com.apigee.rbac.impl.LdapAuthenticatorImpl

## Identifies the type of binding:
# Set to "true" for direct binding
# Set to "false" for indirect binding. 
conf_security_externalized.authentication.bind.direct.type=false

## The next seven properties are needed regardless of direct or indirect binding. You need to configure these per your external LDAP installation. 
## The IP or domain for your external LDAP instance. 
conf_security_externalized.authentication.server.url=ldap://localhost:389

## Replace with your external LDAP server version.
conf_security_externalized.authentication.server.version=3

## Set the server timeout in milliseconds. 
conf_security_externalized.authentication.server.conn.timeout=50000

## Change these baseDN values to match your external LDAP service. This attribute value will be provided by your external LDAP administrator, and may have more or fewer dc elements depending on your setup.
conf_security_externalized.authentication.user.store.baseDN=dc=apigee,dc=com

## Do not change this search string. It is used internally. 
conf_security_externalized.authentication.user.store.search.query=(&(${userAttribute}=${userId}))

## Identifies the external LDAP property you want to bind against for Authentication. For example if you are binding against an email address, this would typically be in the userPrincipalName property in your external LDAP instance. Alternatively if you are binding against the user’s ID, this would typically be in the sAMAccountName property. See also "Configuration required for different sysadmin credentials".
conf_security_externalized.authentication.user.store.user.attribute=userPrincipalName

## Used by Apigee to perform the Authorization step and currently, Apigee only supports email address for Authorization. Make sure to set it to the attribute in your external LDAP that stores the user’s email address. Typically this will be in the userPrincipalName property. 
conf_security_externalized.authentication.user.store.user.email.attribute=userPrincipalName

## The external LDAP username (for a user with search privileges on the external LDAP) and password and whether the password is encrypted. You must also set the attribute externalized.authentication.bind.direct.type to false.
## The password attribute can be encrypted or in plain text. See "Indirect binding only: Encrypting the external LDAP user’s password" for encryption instructions. Set the password.encrypted attribute to "true" if the password is encrypted. Set it to "false" if the password is in plain text.
conf_security_externalized.authentication.indirect.bind.server.admin.dn=myExtLdapUsername
conf_security_externalized.authentication.indirect.bind.server.admin.password=myExtLdapPassword
conf_security_externalized.authentication.indirect.bind.server.admin.password.encrypted=true

इंस्टॉलेशन की जांच करना

  1. पुष्टि करें कि सर्वर काम कर रहा है:
    > /opt/apigee/apigee-service/bin/apigee-all स्थिति
  2. Apigee Edge के ग्लोबल सिस्टम एडमिन क्रेडेंशियल का एक सेट देकर, इस कमांड को लागू करें. हम जिस एपीआई कॉल की जांच करने वाले हैं उसे सिर्फ़ Edge sysadmin के ज़रिए एक्ज़ीक्यूट किया जा सकता है.

    अहम जानकारी: आपके बाहरी LDAP खाते में एक जैसे क्रेडेंशियल मौजूद होने चाहिए. अगर ऐसा नहीं है, तो आपको उन्हें अभी जोड़ना होगा. ध्यान दें कि आम तौर पर उपयोगकर्ता नाम एक ईमेल पता होता है. हालांकि, यह इस बात पर निर्भर करता है कि आपने बाहरी पुष्टि करने के तरीके को कैसे कॉन्फ़िगर किया है. इस बारे में, इस दस्तावेज़ में पहले ही बताया गया है.
    > curl -v http://<management-server-ip>:8080/v1/o -u <Sysadmin Username>

    उदाहरण के लिए:
    > curl -v http://192.168.52.100:8080/v1/e@
  3. जब आपसे कहा जाए, तो अपना पासवर्ड डालें.

    अगर कमांड, 200 स्टेटस और संगठनों की सूची दिखाता है, तो कॉन्फ़िगरेशन सही है. यह कमांड इस बात की पुष्टि करता है कि Edge मैनेजमेंट सर्वर के एपीआई कॉल की पुष्टि बाहरी LDAP सिस्टम की मदद से की गई है.