> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/ar/installation-setup/installation/active-directory/active-directory-setup.md).

# إعداد 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;

![](https://848173432-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MG97Q8noYV0wHC7Qv27%2F-MG986139ZLFcSQJoenw%2Fimage.png?alt=media\&token=3e01ac81-76b5-4cc8-b364-0a2866c3d208)

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

![](https://848173432-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MG97Q8noYV0wHC7Qv27%2F-MG98cXb2UxcReM47-LU%2Fimage.png?alt=media\&token=0db72b64-a90a-4dcf-bf89-09c51cd7b89b)

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

![](https://848173432-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MG97Q8noYV0wHC7Qv27%2F-MG98mcNkDmSD0OiFx8W%2Fimage.png?alt=media\&token=95796b62-6747-48fa-bfad-29b854eb40d5)

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

![](https://848173432-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MG97Q8noYV0wHC7Qv27%2F-MG99-cGrNL6IHad5Ae-%2Fimage.png?alt=media\&token=c7211315-dba5-4cdb-a174-4fac3a9cff70)

![](https://848173432-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MG97Q8noYV0wHC7Qv27%2F-MG992wRc4E9A4zX2QN7%2Fimage.png?alt=media\&token=4b8507dc-0d18-481d-8b8f-d01415ed8478)

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
