# إعداد Active Directory

{% hint style="danger" %}
يعمل Active Directory فقط عندما يتم إعداد ngSurvey ضمن تكوين قائم على Windows Server
{% endhint %}

بمجرد أن يكون لديك **تثبيت قيد التشغيل بالفعل** لـ ngSurvey على [IIS](broken://pages/dbaf4cb23345bc1d5893bcc643c1167b7a89cfe6) يمكنك اتباع إعداد التثبيت التالي لتكوين Active Directory.

{% hint style="warning" %}
ستظل قادرًا على تسجيل الدخول في أي وقت باستخدام حسابات ngSurvey حتى مع تمكين Active Directory. كلاهما يعملان بالتوازي.&#x20;
{% endhint %}

## ⌨️ تثبيت تسجيل الدخول اليدوي

سيتطلب تسجيل الدخول اليدوي من المستخدم إدخال بيانات اعتماد Active Directory عبر نموذج ويب. إعداد Active Directory بسيط لأنه يتطلب فقط إعداد خادم Active Directory وDomain وحساب إداري يمكنه استعلام الخادم. للانتقال إلى هذه الإعدادات توجه إلى صفحة [إعدادات النظام](/ar/installation-setup/system-settings.md) وقم بتكوين إعدادات Active Directory الخاصة بك.

{% hint style="info" %}
إذا رغبت في دعم تسجيل الدخول الأحادي أيضًا عندما يكون المستخدم قد قام بتسجيل الدخول بالفعل في المتصفح، يمكنك اتباع إعداد تثبيت Single sign on أدناه بعد تكوين تثبيت تسجيل الدخول اليدوي.
{% endhint %}

## 👤 تثبيت تسجيل الدخول الأحادي

الخطوة الأولى هي ضبط سلسلة اتصال قاعدة البيانات في web.config للدليل الفرعي المسمى AD. يجب أن تكون سلسلة الاتصال نفسها التي استخدمتها لموقع ngSurvey الجذر.&#x20;

الخطوة التالية هي إضافة Application Pool جديد داخل موقع مدير IIS لديك.&#x20;

![](/files/c116b49ed031dcacdb708a57c1feedddae0e184e)

بمجرد إنشاء التطبيق الجديد انتقل إلى جذر موقع ngSurvey وحوّل دليل AD إلى تطبيق.

![](/files/c83d47411621825916951c069b88eeaa96b5b058)

قم بتعيين Application Pool الذي أنشأته سابقًا لتطبيقك.

![](/files/2ae49063e233d60f78555597706bd66a8779c8ce)

الآن بعد أن حولت الدليل إلى تطبيق يمكنك تغيير مصادقة التطبيق إلى Windows authentication فقط. تأكد من تعطيل anonymous authentication.

![](/files/f0e4ee7ebfe2f2e849aec782104b22dbfb504b8c)

![](/files/f189f2880e269973ebef1f5fc50d044c5d657a6c)

هذا كل شيء؛ يمكن لمستخدمي Active Directory الحاليين الآن استخدام بيانات اعتمادهم لتسجيل الدخول إلى إدارة ngSurvey أو باستخدام [Active Directory Security](/ar/form-management/security/security-items/active-directory-security.md) لتسجيل الدخول إلى استمارات ngSurvey.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ngsurvey.com/ar/installation-setup/installation/active-directory/active-directory-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
