تفعيل المصادقة الخارجية

Edge for Private Cloud، الإصدار 4.17.09

يوضح هذا القسم كيفية الحصول على المكوّنات المطلوبة وتثبيتها وتهيئتها دمج خدمة LDAP خارجية في Apigee Edge لمصادقة المستخدم

المتطلبات الأساسية

  • يجب أن يتوفّر لديك تثبيت Apigee Edge for Private Cloud 4.17.09.
  • يجب أن تكون لديك بيانات اعتماد مشرف النظام العام في Apigee Edge for Private Cloud من أجل لإجراء هذا التثبيت.
  • عليك معرفة الدليل الجذري لتثبيت Apigee Edge for Private Cloud. تشير رسالة الأشكال البيانية الدليل الجذر التلقائي هو /opt.
  • يجب إضافة بيانات اعتماد مشرف النظام العام في Edge إلى LDAP الخارجي. تذكر أنه بشكل افتراضي يتم تخزين بيانات اعتماد مسؤول إدارة النظم في المتصفح Edge LDAP الداخلي. عند التبديل إلى LDAP الخارجي، تصبح بيانات اعتماد مشرف النظم ستتم المصادقة عليه بدلاً من ذلك. ومن ثم، يجب توفير بيانات الاعتماد إلى النظام الخارجي قبل تفعيل المصادقة الخارجية في Edge.

    على سبيل المثال، إذا ضبطت Apigee Edge for Private Cloud وثبَّتها باستخدام خيارات بيانات اعتماد مشرف النظام على النحو التالي:

    اسم المستخدم: edgeuser@mydomain.com
    كلمة المرور: Secret123

    ثم يستخدم المستخدم edgeuser@mydomain.com مع كلمة المرور. يجب أن يكون Secret123 موجودًا أيضًا في بروتوكول LDAP الخارجي.
  • في حال تشغيل مجموعة "خادم الإدارة"، يرجى ملاحظة أنه يجب تنفيذ جميع الخطوات في هذا المستند لكل خادم إدارة.

إعداد مصادقة خارجية

إنّ النشاط الرئيسي الذي ستنفّذه هو ضبط ملف management-server.properties. يتضمن هذا النشاط إيقاف وتشغيل خادم إدارة Edge، وتحديد ما إذا كنت تريد استخدام الربط المباشر أو غير المباشر، وتشفير بيانات الاعتماد الحساسة، وغيرها من المهام.

  1. ملاحظة مهمة: حدِّد الآن ما إذا كنت تنوي استخدام البيانات المباشرة أو غير المباشرة. طريقة مصادقة الربط. سيؤثر هذا القرار في بعض جوانب الضبط. عرض المصادقة الخارجية:
  2. ملاحظة مهمة: يجب تنفيذ خطوات الإعداد هذه في كل واحدة من ميزات Apigee Edge Management. الخادم (إذا كنت تشغل أكثر من حساب واحد).
  3. افتح /opt/apigee/customer/application/management-server.properties في محرر النصوص. إذا لم يكن الملف متوفّرًا، أنشئه.
  4. أضِف السطر التالي. ملاحظة: تأكد من عدم وجود مسافات لاحقة في النهاية. الخط.

    conf_security_authentication.user.store=externalized.authentication

    يضيف هذا السطر ميزة المصادقة الخارجية إلى Edge for Private Cloud. التثبيت.
  5. لتسهيل هذه الخطوة، أنشأنا نموذجي ضبط تم التعليق عليهما جيدًا -- أحدهما للمصادقة المباشرة والآخر للمصادقة للربط غير المباشر. راجِع النماذج أدناه الربط الذي تريد استخدامه، وأكمِل عملية الإعداد:

    مباشر نموذج إعدادات BINDING
    مباشرة نموذج إعدادات BINDING
  6. إعادة تشغيل خادم الإدارة:
    > /opt/apigee/apigee-service/bin/apigee-service Edge-management-server
  7. تأكَّد من أنّ الخادم يعمل:
    > /opt/apigee/apigee-service/bin/apigee-all
  8. ملاحظة مهمة: عليك إجراء عملية ضبط إضافية ضمن أحد الخيارَين (أو كليهما). في الحالات التالية: (أ) إذا كنت تنوي جعل المستخدمين يسجّلون الدخول باستخدام أسماء مستخدمين وليس عناوين بريد إلكتروني. في هذه الحالة، يجب أيضًا أن يقوم مستخدم مسؤول إدارة النظم لديك بالمصادقة مع اسم مستخدم و/أو (ب) إذا كانت كلمة المرور لحساب مستخدم مسؤول إدارة النظم لديك في يختلف بروتوكول LDAP عن كلمة المرور التي ضبطتها عند تثبيت Apigee Edge لأول مرة من أجل السحابة الإلكترونية الخاصة راجع الضبط مطلوب بيانات اعتماد مختلفة لمسؤول إدارة النظم.

الارتباط المباشر نموذج الإعدادات

## 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 الخارجي. إذا لم يكن كذلك، عليك إضافته الآن. لاحظ أن اسم المستخدم عادةً ما يكون عنوان بريد إلكتروني؛ وَلَكِنْ يعتمد ذلك على كيفية ضبط المصادقة الخارجية، كما هو موضّح سابقًا في هذه جلسة المراجعة.
    &gt; ضفيرة -v http://<management-server-ip>:8080/v1/o -u <اسم مستخدم مشرف النظام>

    مثال:
    &gt; ضفيرة -v http://192.168.52.100:8080/v1/o -u jdoe@mydomain.com
  3. أدخِل كلمة المرور عندما يُطلب منك ذلك.

    إذا عرض الأمر الحالة 200 وقائمة بالمؤسسات، تكون التهيئة صحيحة. يتأكد هذا الأمر من نجاح طلب بيانات من واجهة برمجة التطبيقات إلى خادم إدارة Edge. المصادقة من خلال نظام LDAP الخارجي.