Edge for Private Cloud का वर्शन 4.18.05
इस सेक्शन में, उपयोगकर्ता की पुष्टि करने के लिए, Apigee Edge में LDAP सेवा को इंटिग्रेट करने के लिए ज़रूरी कॉम्पोनेंट पाने, इंस्टॉल करने, और कॉन्फ़िगर करने का तरीका बताया गया है.
ज़रूरी शर्तें
- आपके पास Apigee Edge for Private Cloud 4.18.05 इंस्टॉल होना चाहिए.
- इंस्टॉल करने की इस प्रोसेस को पूरा करने के लिए, आपके पास Apigee Edge for Private Cloud पर ग्लोबल सिस्टम एडमिन के क्रेडेंशियल होने चाहिए.
- आपको Apigee Edge for Private Cloud इंस्टॉलेशन की रूट डायरेक्ट्री के बारे में पता होना चाहिए. डिफ़ॉल्ट रूट डायरेक्ट्री
/optहै. - आपको बाहरी LDAP में अपने Edge ग्लोबल सिस्टम एडमिन क्रेडेंशियल जोड़ने होंगे. याद रखें कि डिफ़ॉल्ट रूप से, सिस्टम एडमिन के क्रेडेंशियल, Edge के इंटरनल एलडीएपी में सेव होते हैं. बाहरी एलडीएपी पर स्विच करने के बाद, आपके सिस्टम एडमिन के क्रेडेंशियल की पुष्टि वहीं की जाएगी. इसलिए, Edge में बाहरी पुष्टि की सुविधा चालू करने से पहले, आपको बाहरी सिस्टम के लिए क्रेडेंशियल उपलब्ध कराने होंगे.
उदाहरण के लिए, अगर आपने Apigee Edge for Private Cloud को ग्लोबल सिस्टम एडमिन क्रेडेंशियल के साथ कॉन्फ़िगर और इंस्टॉल किया है, तो:
username: edgeuser@mydomain.com password: Secret123
इसके बाद, पासवर्ड
Secret123वाले उपयोगकर्ताedgeuser@mydomain.comको भी बाहरी एलडीएपी में मौजूद होना चाहिए. - अगर मैनेजमेंट सर्वर क्लस्टर का इस्तेमाल किया जा रहा है, तो ध्यान दें कि आपको हर मैनेजमेंट सर्वर के लिए, इस दस्तावेज़ में दिए गए सभी चरणों को पूरा करना होगा.
पुष्टि करने के लिए बाहरी तरीके कॉन्फ़िगर करना
आपकी मुख्य गतिविधि, management-server.properties फ़ाइल को कॉन्फ़िगर करना होगी.
इस गतिविधि में, Edge मैनेजमेंट सर्वर को रोकना और चालू करना, यह तय करना कि आपको डायरेक्ट या इनडायरेक्ट बाइंडिंग का इस्तेमाल करना है या नहीं, संवेदनशील क्रेडेंशियल को एन्क्रिप्ट करना, और इससे जुड़े अन्य काम शामिल हैं.
- अहम जानकारी: अभी तय करें कि आपको पुष्टि करने के लिए, इनडायरेक्ट या डायरेक्ट बाइंडिंग का तरीका इस्तेमाल करना है. इस फ़ैसले से, कॉन्फ़िगरेशन के कुछ पहलुओं पर असर पड़ेगा. बाहरी पुष्टि देखें.
- अहम जानकारी: आपको हर Apigee Edge मैनेजमेंट सर्वर पर, कॉन्फ़िगरेशन के ये चरण पूरे करने होंगे. ऐसा तब करना होगा, जब एक से ज़्यादा सर्वर चल रहे हों.
/opt/apigee/customer/application/management-server.propertiesको किसी टेक्स्ट एडिटर में खोलें. अगर फ़ाइल मौजूद नहीं है, तो उसे बनाएं.- यह लाइन जोड़ें:
conf_security_authentication.user.store=externalized.authentication
यह लाइन, Edge for Private Cloud के इंस्टॉलेशन में बाहरी पुष्टि की सुविधा जोड़ती है.
- इस चरण को आसान बनाने के लिए, हमने दो अच्छी तरह से टिप्पणी किए गए सैंपल कॉन्फ़िगरेशन बनाए हैं -- एक डायरेक्ट और एक इनडायरेक्ट बाइंडिंग ऑथेंटिकेशन के लिए. आपको जिस बाइंडिंग का इस्तेमाल करना है उसके लिए, यहां दिए गए सैंपल देखें और कॉन्फ़िगरेशन पूरा करें:
- मैनेजमेंट सर्वर को रीस्टार्ट करें:
/opt/apigee/apigee-service/bin/apigee-service edge-management-server restart
- पुष्टि करें कि सर्वर काम कर रहा है:
/opt/apigee/apigee-service/bin/apigee-all status
- अहम जानकारी: आपको इनमें से किसी एक या दोनों स्थितियों में, अतिरिक्त कॉन्फ़िगरेशन करना होगा:
- अगर आपको उपयोगकर्ताओं को ऐसे उपयोगकर्ता नामों का इस्तेमाल करके लॉग इन करने की सुविधा देनी है जो ईमेल पते नहीं हैं. इस मामले में, आपके सिस्टम एडमिन को भी उपयोगकर्ता नाम की मदद से पुष्टि करनी होगी.
और/या
- अगर आपके बाहरी एलडीएपी में मौजूद सिस्टम एडमिन के उपयोगकर्ता खाते का पासवर्ड, उस पासवर्ड से अलग है जिसे आपने Apigee Edge for Private Cloud को पहली बार इंस्टॉल करते समय कॉन्फ़िगर किया था. सिस्टम एडमिन के अलग-अलग क्रेडेंशियल के लिए ज़रूरी कॉन्फ़िगरेशन देखें.
- अगर आपको उपयोगकर्ताओं को ऐसे उपयोगकर्ता नामों का इस्तेमाल करके लॉग इन करने की सुविधा देनी है जो ईमेल पते नहीं हैं. इस मामले में, आपके सिस्टम एडमिन को भी उपयोगकर्ता नाम की मदद से पुष्टि करनी होगी.
डायरेक्ट बाइंडिंग कॉन्फ़िगरेशन का सैंपल
## 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}
INDIRECT 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
इंस्टॉलेशन की जांच करना
- पुष्टि करें कि सर्वर काम कर रहा है:
/opt/apigee/apigee-service/bin/apigee-all status
- Apigee Edge के ग्लोबल सिस्टम एडमिन के क्रेडेंशियल का सेट देकर, यह निर्देश चलाएं. हम जिस एपीआई कॉल की जांच करने जा रहे हैं उसे सिर्फ़ Edge का सिस्टम एडमिन ही चला सकता है.
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
- जब आपसे कहा जाए, तब अपना पासवर्ड डालें.
अगर कमांड 200 स्टेटस और संगठनों की सूची दिखाता है, तो इसका मतलब है कि कॉन्फ़िगरेशन सही है. यह निर्देश पुष्टि करता है कि Edge मैनेजमेंट सर्वर को किए गए एपीआई कॉल की पुष्टि, बाहरी एलडीएपी सिस्टम के ज़रिए हो गई है.