বাহ্যিক প্রমাণীকরণ সক্ষম করা হচ্ছে

এই বিভাগটি ব্যাখ্যা করে কিভাবে ব্যবহারকারীর প্রমাণীকরণের জন্য Apigee Edge-এ একটি LDAP পরিষেবা সংহত করার জন্য প্রয়োজনীয় উপাদানগুলি প্রাপ্ত, ইনস্টল এবং কনফিগার করতে হয়।

পূর্বশর্ত

  • ব্যক্তিগত ক্লাউড 4.18.05 ইনস্টলেশনের জন্য আপনার অবশ্যই একটি Apigee এজ থাকতে হবে।
  • এই ইনস্টলেশনটি সম্পাদন করার জন্য আপনার অবশ্যই ব্যক্তিগত ক্লাউডের জন্য Apigee এজ-এ গ্লোবাল সিস্টেম অ্যাডমিনিস্ট্রেটর শংসাপত্র থাকতে হবে।
  • ব্যক্তিগত ক্লাউড ইনস্টলেশনের জন্য আপনাকে আপনার Apigee Edge-এর রুট ডিরেক্টরি জানতে হবে। ডিফল্ট রুট ডিরেক্টরি হল /opt
  • আপনাকে অবশ্যই বহিরাগত LDAP-এ আপনার এজ গ্লোবাল সিস্টেম অ্যাডমিনিস্ট্রেটর শংসাপত্র যোগ করতে হবে। মনে রাখবেন যে ডিফল্টরূপে, sysadmin শংসাপত্রগুলি এজ অভ্যন্তরীণ LDAP-এ সংরক্ষণ করা হয়। একবার আপনি বাহ্যিক LDAP-এ স্যুইচ করলে, পরিবর্তে আপনার sysadmin শংসাপত্রগুলি সেখানে প্রমাণীকৃত হবে। অতএব, এজ-এ বাহ্যিক প্রমাণীকরণ সক্ষম করার আগে আপনাকে অবশ্যই বহিরাগত সিস্টেমে শংসাপত্রগুলি সরবরাহ করতে হবে।

    উদাহরণস্বরূপ যদি আপনি গ্লোবাল সিস্টেম অ্যাডমিনিস্ট্রেটর শংসাপত্রগুলির সাথে ব্যক্তিগত ক্লাউডের জন্য Apigee এজ কনফিগার এবং ইনস্টল করে থাকেন:

    username: edgeuser@mydomain.com
    password: Secret123

    তারপর ব্যবহারকারী edgeuser@mydomain.com পাসওয়ার্ড সহ Secret123 বাহ্যিক LDAP-এ উপস্থিত থাকতে হবে।

  • আপনি যদি একটি ম্যানেজমেন্ট সার্ভার ক্লাস্টার চালাচ্ছেন, মনে রাখবেন যে প্রতিটি ম্যানেজমেন্ট সার্ভারের জন্য আপনাকে অবশ্যই এই নথির সমস্ত পদক্ষেপগুলি সম্পাদন করতে হবে।

বাহ্যিক প্রমাণীকরণ কনফিগার করা হচ্ছে

আপনি যে প্রধান কার্যকলাপটি সম্পাদন করবেন তা হল management-server.properties ফাইল কনফিগার করা। এই ক্রিয়াকলাপের মধ্যে রয়েছে এজ ম্যানেজমেন্ট সার্ভার বন্ধ করা এবং শুরু করা, আপনি প্রত্যক্ষ বা পরোক্ষ বাঁধাই ব্যবহার করতে চান কিনা তা সিদ্ধান্ত নেওয়া, সংবেদনশীল শংসাপত্রগুলি এনক্রিপ্ট করা এবং অন্যান্য সম্পর্কিত কাজগুলি।

  1. গুরুত্বপূর্ণ : আপনি পরোক্ষ বা প্রত্যক্ষ বাইন্ডিং প্রমাণীকরণ পদ্ধতি ব্যবহার করতে চান কিনা তা এখনই সিদ্ধান্ত নিন। এই সিদ্ধান্তটি কনফিগারেশনের কিছু দিককে প্রভাবিত করবে। বাহ্যিক প্রমাণীকরণ দেখুন।
  2. গুরুত্বপূর্ণ : আপনাকে অবশ্যই প্রতিটি Apigee এজ ম্যানেজমেন্ট সার্ভারে এই কনফিগারেশন পদক্ষেপগুলি করতে হবে (যদি আপনি একাধিক চালাচ্ছেন)।
  3. একটি টেক্সট এডিটরে /opt/apigee/customer/application/management-server.properties খুলুন। যদি ফাইলটি বিদ্যমান না থাকে তবে এটি তৈরি করুন।
  4. নিম্নলিখিত লাইন যোগ করুন:
    conf_security_authentication.user.store=externalized.authentication

    এই লাইনটি ব্যক্তিগত ক্লাউড ইনস্টলেশনের জন্য আপনার প্রান্তে বাহ্যিক প্রমাণীকরণ বৈশিষ্ট্য যোগ করে।

  5. এই ধাপটিকে সহজ করার জন্য, আমরা দুটি ভাল-মন্তব্য করা নমুনা কনফিগারেশন তৈরি করেছি -- একটি প্রত্যক্ষের জন্য এবং একটি পরোক্ষ বাইন্ডিং প্রমাণীকরণের জন্য ৷ আপনি যে বাঁধাই ব্যবহার করতে চান তার জন্য নীচের নমুনাগুলি দেখুন এবং কনফিগারেশনটি সম্পূর্ণ করুন:
  6. ম্যানেজমেন্ট সার্ভার পুনরায় চালু করুন:
    /opt/apigee/apigee-service/bin/apigee-service edge-management-server restart
  7. সার্ভার চলছে কিনা যাচাই করুন:
    /opt/apigee/apigee-service/bin/apigee-all status
  8. গুরুত্বপূর্ণ : আপনাকে অবশ্যই নিম্নলিখিত পরিস্থিতিতে একটি (বা উভয়ের) অধীনে একটি অতিরিক্ত কনফিগারেশন করতে হবে:
    1. আপনি যদি ব্যবহারকারীদের ইমেল ঠিকানা নয় এমন ব্যবহারকারীর নাম ব্যবহার করে লগ ইন করতে চান। এই ক্ষেত্রে, আপনার sysadmin ব্যবহারকারীকে অবশ্যই একটি ব্যবহারকারীর নাম দিয়ে প্রমাণীকরণ করতে হবে।

      এবং/অথবা

    2. আপনার বাহ্যিক LDAP-এ আপনার sysadmin ব্যবহারকারী অ্যাকাউন্টের পাসওয়ার্ড যদি আপনি প্রথমবার ব্যক্তিগত ক্লাউডের জন্য 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}

ইনডাইরেক্ট বাইন্ডিং কনফিগারেশন নমুনা

## 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 গ্লোবাল সিস্টেম অ্যাডমিন শংসাপত্রের একটি সেট প্রদান করে এই কমান্ডটি চালান। আমরা যে API কলটি পরীক্ষা করতে যাচ্ছি তা শুধুমাত্র একটি এজ সিসাডমিন দ্বারা কার্যকর করা যেতে পারে।
    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 স্থিতি এবং সংস্থাগুলির একটি তালিকা প্রদান করে, কনফিগারেশনটি সঠিক। এই কমান্ডটি যাচাই করে যে এজ ম্যানেজমেন্ট সার্ভারে API কলটি বহিরাগত LDAP সিস্টেমের মাধ্যমে সফলভাবে প্রমাণীকৃত হয়েছে।