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

Edge for Private Cloud v4.19.01

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

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

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

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

    username: edgeuser@mydomain.com
    password: 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-service edge-management-server restart
  7. पुष्टि करें कि सर्वर काम कर रहा है:
    /opt/apigee/apigee-service/bin/apigee-all status
  8. अहम जानकारी: आपको इनमें से किसी एक (या दोनों) के तहत अतिरिक्त कॉन्फ़िगरेशन करने होंगे:
    1. अगर आप चाहते हैं कि उपयोगकर्ता ऐसे उपयोगकर्ता नामों का इस्तेमाल करके लॉग इन करें जो ईमेल पते नहीं हैं. इस मामले में, आपके सिस्टम एडमिन को भी उपयोगकर्ता नाम से पुष्टि करनी होगी.

      और/या

    2. अगर आपके बाहरी एलडीएपी में आपके सिस्टम एडमिन उपयोगकर्ता खाते का पासवर्ड, उस पासवर्ड से अलग है जिसे आपने पहली बार प्राइवेट क्लाउड के लिए 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 in Microsoft Active Directory, this would be
## 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 with AD, 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}

अप्रत्यक्ष BINDING कॉन्फ़िगरेशन सैंपल

## 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 status
  2. Apigee Edge के ग्लोबल सिस्टम एडमिन क्रेडेंशियल का एक सेट देकर, इस कमांड को लागू करें. हम जिस एपीआई कॉल की जांच करने वाले हैं उसे सिर्फ़ Edge sysadmin के ज़रिए एक्ज़ीक्यूट किया जा सकता है.
    curl -v http://management-server-IP:8080/v1/o -u sysadmin_username

    उदाहरण के लिए:

    curl -v http://192.168.52.100:8080/v1/o -u jdoe@mydomain.com
  3. जब आपसे कहा जाए, तो अपना पासवर्ड डालें.

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