گروه کاربران لینوکس دانشگاه شهید مدنی آذربایجان

لاگ دانشگاه آذربایجان :: Azarbaijan University Linux User Group

گروه کاربران لینوکس دانشگاه شهید مدنی آذربایجان

لاگ دانشگاه آذربایجان :: Azarbaijan University Linux User Group

ریز نمرات آز پایگاه داده


در صورتیکه تمرینی را تحویل داده اید اما نمره اش برایتان منظور نشده، از طریق ایمیل اطلاع دهید. هر گونه تغییر در نمرات فقط در سیستم سما اعمال خواهد شد.

با توجه به تمدید مهلت تحویل  تمرین سی شارپ  تا روز دوشنبه، نمره این تمرین پس از دریافت ایمیل دانشجو، به نمره کل وی اضافه خواهد شد. در صورت امکان پروژه خود را با ورژن ویژوال استودیوی 2010 ذخیره نمایید



ردیف شماره دانشجوئی تمرینC#(4) فعالیت کلاسی(2) آز پایانی(14) نمره کل آز میان ترم-انتخابی(6 نمره)
1 931831201     10.25 10.25  
2 931831204     9 9  
3 931831214   2 8 16 6
4 931831215   2 12.5 14.5  
5 941832207     14 14  
6 931831216   2 11.5 13.5  
7 931831218 4 2 12.5 19.5  
8 931831222     7.5 13 5.5
9 931831223     14 14  
10 931831224     13.5 13.5  
11 931831225 2 2 13.5 17.5  
12 931831226   2 11.75 13.75  
13 931831227   2 14 16  
14 931831228 2   13.5 15.5  
15 931831229     13 13  
16 931831233   2 7.5 13.5 4
17 931831234     14 14  
18 931831236   2 8 16 6
19 931831237     14 14  
20 931831243 2 2 12.5 16.5  
21 931831246     8 14 6
22 931831247     11.5 11.5  
23 931831245   2 6 8  



ردیف شماره دانشجوئی تمرینC#(4) فعالیت کلاسی(2) آز پایانی(14) نمره کل آز میان ترم-انتخابی(6 نمره)
1 931831202   2 12.5 15.5  
2 931831205   2 12.5 15.5  
3 931831206 4 2 8 19 5
4 931831207 اتچ نشده 2 13.5 15.5  
5 931831208   2 13.5 15.5  
6 931831209   2 13 15  
7 931831210     12.75 12.75  
8 931831211   2 11.5 13.5  
9 931831220 4 2 14 20  
10 922381207     13 13  
11 931831249   2 14 16  
12 921381215   2 12.75 14.75  
13 931831230     7 12.25 5.25
14 931831231   2 11.25 13.25  
15 931831232   2 13 16  
16 931831248   2 14 16  
17 931831235     13 13  
18 931831240     13.25 13.25  
19 931831242 4 2 14 20  

ریز نمرات آز سیستم عامل

در صورتیکه تمرینی را تحویل داده اید اما نمره اش برایتان منظور نشده، از طریق ایمیل اطلاع دهید. هر گونه تغییر در نمرات فقط در سیستم سما اعمال خواهد شد.



ردیف شماره دانشجوئی آز مبانی(3نمره) آز میان ترم(2) پروژه کلاسی(1) تمرین 1(1) تمرین 2 (2) تمرین 3(3) تمرین 4(2) تمرین 5(3) فعالیت کلاسی(1) آز پایانی(2) نمره کل
1 931831208 1.25 2   1 1.5 3 1.5 3 1 2 16.25
2 941832204 1.5 1.75 1 1 2 3 1.5 2.75 1 2 17.5
3 941832205 0.5 1.75 1 1 1.5 3 1.5 2.75 1 1.75 15.75
4 941832206 2 1.25 1 1 2 3 2 2 1 2 17.25
5 941832207 2.5 2 1 1 2 3 1.5 2.75 1 2 18.75
6 941832210 2 1.5 1 0 2 3 1.5 2.75 1 1.5 16.25
7 941832211 2.5 1.5 1 1 1.75 2.5 1.5 2.5 1 1.5 16.75
8 931831249 2.25 0.75 0.5 1 1.75 2.5 2 2.25 1 0 14
9 941832213 1 2 1 1 1.75 3 1.5 2.25 1 2 16.5
10 941832220 2 2 1 1   3 1.75   1 1.5 13.25
11 941832221 0 1.75 1 1   3 1.5 2.5 1 2 13.75
12 941832223 1.5 2 1 1 1.5 3 1.5 2.75 1 2 17.25
13 941832227 0 1.5 1 1 1.75 2.5 1.5 2.5 1 1.5 14.25
14 941832229 1.5 1.25 1 0   غ   2.25 1 1.5 8.5
15 941832235 2.5 1 1 1   3 1.5 2.75 1 1.5 15.25
16 941832242 1.75 1.25 1 1 1.75 3 1.5 2.25 1 2 16.5
17 941832243 0.25 2 1 1 1.75 3 1.5 2.75 1 2 16.25
18 941832245 1 1.25 1 1 1.75 3 2   1 1.5 13.5







































ردیف شماره دانشجوئی آز مبانی(3نمره) آز میان ترم(2) پروژه کلاسی(1) تمرین 1(1) تمرین 2 (2) تمرین 3(3) تمرین 4(2) تمرین 5(3) فعالیت کلاسی(1) آز پایانی(2) نمره کل
1 941832202 1.75 2 1 1 1.75 3 1.5 3 1 2 18
2 941832208 2.5 1 1 1 1.75 2.5 1.5 2.5 1 1.5 16.25
3 941832209 2.25 1 1 1 1.75 2.5 1.5 2 1 2 16
4 941832212 2.5 1.5 1 1 2 3 1.5 2.5 1 2 18
5 941832214 2.5 1.5 1 1 2 3 2 2.25 1 2 18.25
6 941832216 2.5 1.75 1 1 2 3 1.5 2.25 1 1.5 17.5
7 941832217 2.5 1.25 1 1 2 2.75 1.5 2.75 1 1.5 17.25
8 941832231 2 2 1 0.75   غ 1.5 2.75 1 2 13
9 941832233 2 1.25 1 0.75   غ 1.5 2.75 1 1.5 11.75
10 941832234 0.5 0.75 1 1   3 1 2 1 1 11.25
11 941832236 2.5 1.75 غ 1   3 1.5   1 2 12.75
12 941832238 2.5 1.5 1 1 1 2.5 2 3 1 2 17.5
13 941832244 2.5 0.75 1 1   3 1 2.5 1 2 14.75

ریز نمرات کارگاه کامپیوتر

در صورتیکه تمرینی را تحویل داده اید اما نمره اش برایتان منظور نشده، از طریق ایمیل اطلاع دهید

هر گونه تغییر در نمرات فقط در سیستم سما اعمال خواهد شد.



ردیف شماره دانشجوئی مبانی(3 نمره) میان ترم(3) تمرین 1(4) تمرین 2(3) تمرین3(3) پایان ترم(3) فعالیت کلاسی (1) نمره کل
1 961830204 2 2.75 3.5 2.5 3 3 1 17.75
2 961830218 2.25 3 3 2.5 3 3 1 17.75
3 961830220 1.75 غ 2     2 1 6.75
4 961830222 2.25 2.5 4 2.25 3 3 1 18
5 961830231 1 2 3.25 2.5 3 2.25 1 15
6 961830233 1.5 2.75 2   2 3 1 12.25
7 961830235 2.25 2.75 4 1.75 2.5 3 1 17.25
8 961830239 1.5 2.75 4 3 3 3 1 18.25
9 961830241 2.75 3 4 3 3 3 1 19.75
10 961830291 1.5 2.5 3.5   2 1.5 1 12
11 961830269 2.5 غ 2.5     3 1 9
12 961830272 2.75 3 4 2.5 3 3 1 19.25
13 961830273 2.5 3 4 2.25 3 3 1 18.75
14 961830271 ؟ 3 3.5 2.5 2.75 3 1 15.75
15 961830276 1.25 3 3 2 2.25 3 1 15.5
16 961830280 2.5 3 3.5 2.5 1.75 2.5 1 16.75
17 961830286 2 3 3.5 2.5 3 3 1 18






























ردیف شماره دانشجوئی مبانی(3 نمره) میان ترم(3) تمرین 1(4) تمرین 2(3) تمرین3(3) پایان ترم(3) فعالیت کلاسی (1) نمره کل
1 961830208 2 3 4 2 3 3 1 18
2 961830210 2 2.75 3.5 2.25 2 1.5 1 15
3 961830219 0.75 3 4 2.5 3 2 1 16.25
4 961830227 2.5 2 3 2.5 3 3 1 17
5 961830232 1.25 3 3 2.5 2.75 2 1 15.5
6 961830238 2.5 2.5 4 2.75 3 3 1 18.75
7 961830247 1.75 2.75 4   2 2.5 1 14
8 951830249 2.75 3 3.25 2.5 3 3 1 18.5
9 961830251 2.75 3 2.5 2.5 3 2.5 1 17.25
10 961830253 1.75 3 3 2.5 3 2.5 1 16.75
11 961830261 2 3 3.5 2.5 3 3 1 18
12 961830263 0.75 غ       0 1 1.75
13 961830274 1.5 2.75 3.5 2.5 2.25 3 1 16.5
14 961830275 1 غ       غ 1 2
15 961830285 2.75 3 4 2.5 3 3 1 19.25
16 951830286 2.25 2.75 3.5 2.5 3 2.5 1 17.5

نصب LEMP برروی CentOS7



LEMP به گروهی از نرم افزارهای آزاد گفته میشود که معمولا کنار هم برای میزبانی وبسایت‌ها و وب اپ‌های داینامیک نصب میشوند. این اصطلاح در واقع ترکیبی از حروف اول نرم افزارهای: سیستم عامل Linux، وب سرور ENginx، دیتابیس MySQL(MariaDB) و PHP است.

 

ادامه مطلب ...

چگونگی نصب سرورLDAPدر CentOS،  RHEL, Scientific linux 6.5/6.4/6.3

 

 

در این آموزش ما قصد داریم سرور LDAP را با استفاده از 389 دایرکتوری سرور راه اندازی کنیم. 389 دایرکتوری سرور یک سرور کلاس Open Source LDAP است که توسط انجمن Redhat ایجاد شده است.

امکانات:

- پاسخگویی چند استاد، برای آماده کردن تحمل خطاو عملکرد بالا نوشتن.

- مقیاس پذیری: هزاران عملیات در ثانیه، ده ها هزار کاربر همزمان، ده ها میلیون نوشته، صدها گیگابایت داده.

-همگام سازی کاربر و گروه Active Directory.

-امنیت تصدیق(هویت)وحمل نقل (SSLv3، TLSv1، و SASL).

-حمایت کردن برایLDAPv3.

-On-line، ازکارافتادکی در سطح صفر، به روز رسانی طرح مبتنی بر LDAP، پیکربندی، مدیریت و درخت اطلاعات کنترل دسترسی (ACIs).

-کنسول گرافیکی برای تمام جنبه های کاربر، گروه و مدیریت سرور.

پیش نیازها:

-سرور LDAP باید دارای FQDN معتبرباشد. جزئیات سرور ldap را به  سرورDNS خود اضافه کنید.

-تنظیم فایروال را برای اجازه دادن به پورت های ldap.

- قادرساختن مخازن EPEP و REMI برای جلوگیری از مشکلات وابستگی

در این چگونگی جزئیات  سرورLDAP من در زیر آمده است.

Operating System : CentOS 6.5 server
Host name        : server.unixmen.local
IP Address       : 192.168.1.101/24.

 

سرور خود را به کاملا دردامنه واجدشزایط درفایل / etc / hosts تنظیم کنید.

ویرایش فایل / etc / hosts /

 

# vi /etc/hosts

 

نام میزبان خود را به صورت زیر نشان دهید.

 

[...]
192.168.1.101   server.unixmen.local    server

 

# vi /etc/sysconfig/iptables

 

این خطوط را اضافه کنید.

 

[...]
-A INPUT -m state --state NEW -m tcp -p tcp --dport 389 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 636 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9830 -j ACCEPT
[...]

 

 

فایروال را رستارت کنید.

# service iptables restart

 

تنظیم عملکرد و امنیت برای  سرورLDAP

قبل از نصب سرور LDAP، ما باید برخی از فایل ها را برای عملکرد و امنیت تنظیم کنیم.

ویرایش فایل "/etc/sysctl.conf"

# vi /etc/sysctl.conf

 

در انتهای خطوط زیر را اضافه کنید.

[...]
net.ipv4.tcp_keepalive_time = 300
net.ipv4.ip_local_port_range = 1024 65000
fs.file-max = 64000

 

ویرایش فایل "/etc/security/limits.conf"

# vi /etc/security/limits.conf

 

خطوط زیر را در پایین اضافه کنید.

[...]
*               soft     nofile          8192   
*               hard     nofile          8192

 

ویرایش فایل "/ etc / profile"

# vi /etc/profile

 

این خطوط را درآخراضافه کنید.

[...]
ulimit -n 8192

ویرایش فایل "/etc/pam.d/login"

# vi /etc/pam.d/login

 

خطوط را درانتها اضافه کنید.

[...]
session    required     /lib/security/pam_limits.so

 

حالا سرور را Restart کنید.

389 دایرکتوری را نصب کنید.

یک حساب کاربری LDAP ایجاد کنید.

# useradd ldapadmin
# passwd ldapadmin

 

اکنون 389 سرور دایرکتوری با استفاده از دستور نصب کنید:

# yum install -y 389-ds openldap-clients

 

پیکربندی سرور LDAP

اکنون زمان برای راه اندازی سرور LDAP است. این کاملا روش فرآیند طولانی است. دستور زیر را برای پیکربندی 389 سرور دایرکتوری اجرا کنید.

# setup-ds-admin.pl

 

اگر شما هر گونه اشتباهی را مرتکب شدید و می خواهید به صفحه قبلی برگردید، CTRL + B را فشار دهید و Enter را بزنید. برای لغو تنظیمات CTRL + C را فشار دهید.

==============================================================================
This program will set up the 389 Directory and Administration Servers.
 
It is recommended that you have "root" privilege to set up the software.
Tips for using this program:
  - Press "Enter" to choose the default and go to the next screen
  - Type "Control-B" then "Enter" to go back to the previous screen
  - Type "Control-C" to cancel the setup program
 
Would you like to continue with set up? [yes]:   ## Press Enter ## 
 
==============================================================================
Your system has been scanned for potential problems, missing patches,
etc.  The following output is a report of the items found that need to
be addressed before running this software in a production
environment.
 
389 Directory Server system tuning analysis version 23-FEBRUARY-2012.
 
NOTICE : System is i686-unknown-linux2.6.32-431.el6.i686 (1 processor).
 
WARNING: 622MB of physical memory is available on the system. 1024MB is recommended for best performance on large production system.
 
WARNING  : The warning messages above should be reviewed before proceeding.
 
Would you like to continue? [no]: yes  ## Type Yes and Press Enter ##
 
==============================================================================
Choose a setup type:
   1. Express
       Allows you to quickly set up the servers using the most
       common options and pre-defined defaults. Useful for quick
       evaluation of the products.
   2. Typical
       Allows you to specify common defaults and options.
   3. Custom
       Allows you to specify more advanced options. This is 
       recommended for experienced server administrators only.
To accept the default shown in brackets, press the Enter key.
 
Choose a setup type [2]:  ## Press Enter ##
 
==============================================================================
Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form
<hostname>.<domainname>
Example: eros.example.com.
 
To accept the default shown in brackets, press the Enter key.
 
Warning: This step may take a few minutes if your DNS servers
can not be reached or if DNS is not configured correctly.  If
you would rather not wait, hit Ctrl-C and run this program again
with the following command line option to specify the hostname:
 
    General.FullMachineName=your.hostname.domain.name
 
Computer name [server.unixmen.local]:     ## Press Enter ##
 
==============================================================================
he servers must run as a specific user in a specific group.
It is strongly recommended that this user should have no privileges
on the computer (i.e. a non-root user).  The setup procedure
will give this user/group some permissions in specific paths/files
to perform server-specific operations.
 
If you have not yet created a user and group for the servers,
create this user and group using your native operating
system utilities.
 
System User [nobody]: ldapadmin  ## Enter LDAP user name created above #
System Group [nobody]: ldapadmin
 
==============================================================================
Server information is stored in the configuration directory server.
This information is used by the console and administration server to
configure and manage your servers.  If you have already set up a
configuration directory server, you should register any servers you
set up or create with the configuration server.  To do so, the
following information about the configuration server is required: the
fully qualified host name of the form
<hostname>.<domainname>(e.g. hostname.example.com), the port number
(default 389), the suffix, the DN and password of a user having
permission to write the configuration information, usually the
configuration directory administrator, and if you are using security
(TLS/SSL).  If you are using TLS/SSL, specify the TLS/SSL (LDAPS) port
number (default 636) instead of the regular LDAP port number, and
provide the CA certificate (in PEM/ASCII format).
 
If you do not yet have a configuration directory server, enter 'No' to
be prompted to set up one.
Do you want to register this software with an existing
configuration directory server? [no]:   ## Press Enter ##
 
==============================================================================
Please enter the administrator ID for the configuration directory
server.  This is the ID typically used to log in to the console.  You
will also be prompted for the password.
Configuration directory server
administrator ID [admin]:   ## Press Enter ##
Password:    ## create password ##
Password (confirm):    ## re-type password ##
 
==============================================================================
The information stored in the configuration directory server can be
separated into different Administration Domains.  If you are managing
multiple software releases at the same time, or managing information
about multiple domains, you may use the Administration Domain to keep
them separate.
 
If you are not using administrative domains, press Enter to select the
default.  Otherwise, enter some descriptive, unique name for the
administration domain, such as the name of the organization
responsible for managing the domain.
 
Administration Domain [unixmen.local]:   ## Press Enter ##
 
==============================================================================
The standard directory server network port number is 389.  However, if
you are not logged as the superuser, or port 389 is in use, the
default value will be a random unused port number greater than 1024.
If you want to use port 389, make sure that you are logged in as the
superuser, that port 389 is not in use.
Directory server network port [389]:   ## Press Enter ##
 
==============================================================================
Each instance of a directory server requires a unique identifier.
This identifier is used to name the various
instance specific files and directories in the file system,
as well as for other uses as a server instance identifier.
 
Directory server identifier [server]:  ## Press Enter ##
 
==============================================================================
The suffix is the root of your directory tree.  The suffix must be a valid DN.
It is recommended that you use the dc=domaincomponent suffix convention.
For example, if your domain is example.com,
you should use dc=example,dc=com for your suffix.
Setup will create this initial suffix for you,
but you may have more than one suffix.
Use the directory server utilities to create additional suffixes.
 
Suffix [dc=unixmen, dc=local]:   ## Press Enter ##
 
=============================================================================
 
Certain directory server operations require an administrative user.
This user is referred to as the Directory Manager and typically has a
bind Distinguished Name (DN) of cn=Directory Manager.
You will also be prompted for the password for this user.  The password must
be at least 8 characters long, and contain no spaces.
Press Control-B or type the word "back", then Enter to back up and start over.
Directory Manager DN [cn=Directory Manager]:   ## Press Enter ##
Password:               ## Enter the password ##
Password (confirm): 
 
==============================================================================
The Administration Server is separate from any of your web or application
servers since it listens to a different port and access to it is
restricted.
 
Pick a port number between 1024 and 65535 to run your Administration
Server on. You should NOT use a port number which you plan to
run a web or application server on, rather, select a number which you
will remember and which will not be used for anything else.
Administration port [9830]:   ## Press Enter ##
 
==============================================================================
The interactive phase is complete.  The script will now set up your
servers.  Enter No or go Back if you want to change something.
 
Are you ready to set up your servers? [yes]:  ## Press Enter ##
Creating directory server . . .
Your new DS instance 'server' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server creation . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Starting admin server . . .
output: Starting dirsrv-admin: 
output:                                                    [  OK  ]
The admin server was successfully started.
Admin server was successfully created, configured, and started.
Exiting . . .
Log file is '/tmp/setupo1AlDy.log'

 

daemon سرور LDAP را به طور خودکار در هر راه اندازی مجدد شروع می شود.

# chkconfig dirsrv on
# chkconfig dirsrv-admin on

 

تست LDAP سرور

اکنون اجازه دهید ما LDAP سرور خود را برای هر گونه خطا با استفاده از دستور زیر را آزمایش کنید.

# ldapsearch -x -b "dc=unixmen,dc=local"

 

خروجی نمونه:

# extended LDIF
#
# LDAPv3
# base <dc=unixmen,dc=local> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
 
# unixmen.local
dn: dc=unixmen,dc=local
objectClass: top
objectClass: domain
dc: unixmen
 
# Directory Administrators, unixmen.local
dn: cn=Directory Administrators,dc=unixmen,dc=local
objectClass: top
objectClass: groupofuniquenames
cn: Directory Administrators
uniqueMember: cn=Directory Manager
 
# Groups, unixmen.local
dn: ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: organizationalunit
ou: Groups
 
# People, unixmen.local
dn: ou=People,dc=unixmen,dc=local
objectClass: top
objectClass: organizationalunit
ou: People
 
# Special Users, unixmen.local
dn: ou=Special Users,dc=unixmen,dc=local
objectClass: top
objectClass: organizationalUnit
ou: Special Users
description: Special Administrative Accounts
 
# Accounting Managers, Groups, unixmen.local
dn: cn=Accounting Managers,ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: groupOfUniqueNames
cn: Accounting Managers
ou: groups
description: People who can manage accounting entries
uniqueMember: cn=Directory Manager
 
# HR Managers, Groups, unixmen.local
dn: cn=HR Managers,ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: groupOfUniqueNames
cn: HR Managers
ou: groups
description: People who can manage HR entries
uniqueMember: cn=Directory Manager
 
# QA Managers, Groups, unixmen.local
dn: cn=QA Managers,ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: groupOfUniqueNames
cn: QA Managers
ou: groups
description: People who can manage QA entries
uniqueMember: cn=Directory Manager
 
# PD Managers, Groups, unixmen.local
dn: cn=PD Managers,ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: groupOfUniqueNames
cn: PD Managers
ou: groups
description: People who can manage engineer entries
uniqueMember: cn=Directory Manager
 
# search result
search: 2
result: 0 Success
 
# numResponses: 10
# numEntries: 9

 

خروجی به چیزی شبیه به بالانگاه خواهد کرد. اگر شما نتیجه 2 را در خروجی بالا بدست آمده است، انجام می شود. در حال حاضر سرور LDAP ما آماده استفاده است.

سرور کنسول ادمین

لطفا توجه داشته باشید که اگر میخواهید سرور ۳۸۹ خود را به صورت گرافیکی مدیریت کنید سرور شما باید بر یک محیط گرافیکی نصب شده باشد.

نصب XFCE در سرور:

 

# yum groupinstall Xfce

 

ریبوت کردن سرور:

# reboot

 

به سرور log in  شوید.

حالا شما میتوانید به سرور کنسول ادمین 389ds به صورت محلی و از راه دور وارد شوید.

برای دسترسی به صورت محلی 389-console را وارد کنید.

برای دسترسی به صورت  از راه دور دستور زیر را در ترمینال وارد کنید.

$ ssh -X root@192.168.1.101 /usr/bin/389-console -a http://192.168.1.101:9830

 

حالا شما باید از ادمین سرور LDAP  خود جزییات ورود به سیستم را بپرسید.

 

 

 

 

از اینجا شما میتوانید واحد های سازماندهی LDAP  ؤگروه ها و کاربران را به صورت گرافیکی تغییر داده و یا حذف کنید.

سرور کنسول ادمین 389-ds دو گروه دارد:

-سرور دایرکتوری

-سروراجرا

شما میتوانید از هر کدام در سرور استفاده کنید.

۱.سرور اجرا

برای دسترسی به صفحه سرور اجرایی بر روی نام دامنه LDAP  کلیک کنید.وارد server Group-Administration Server  شوید و ان را در سمت راست باز کنید.

 

 

 

برگه پیکربندی، آدرس IP سرور منو، پورت پیش فرض، رمز عبور مدیر LDAP، دایرکتوری کاربر پیش فرض را تغییر / ویرایش کنید. همچنین می توانید نام های میزبان را تعیین کنید و کدام آی پی آدرس ها اجازه دسترسی به سرور LDAP خود را داشته باشند.

 

نوار وظایف:

در بخش وظایف، شما می توانید توقف / راه اندازی مجدد / پیکربندی سرور خود را.

 

 

۲.سرور دایرکتوری

برای دسترسی به رابط سرور دایرکتوری، روی نام دامنه LDAP خود کلیک کنید تا گسترش یابد. وارد Server Group-Directory server کلیک کرده و ان را در سمت راست باز کنید.

 

 

ر قسمت دایرکتوری سرور، می توانید تمام پیکربندی لازم برای سرور LDAP خود انجام دهید. شما می توانید پورت پیش فرض را تغییر دهید / تغییر دهید، کاربران، گروه ها، واحد های سازمانی و غیره ایجاد کنید.

 

بسیاری از گزینه های در دسترس در بخش دایرکتوری سرور وجود دارد. از طریق هر بخش بروید و طبق نیاز خود پیکربندی کنید.

 

ایجاد واحدهای سازمان، گروه ها و کاربران

ایجاد واحذ سازمانی:

از کنسول اصلی به سرور دایرکتوری بروید. در زبانه دایرکتوری، بر روی نام دامنه خود (به عنوان مثال Unixmen) راست کلیک کنید.

 

نام OU خود را وارد کنید (به عنوان مثال بخش پشتیبانی) و Ok را کلیک کنید.

 

OU جدید (به عنوان مثال پشتیبانی بخش) تحت Domain Unixmen ایجاد خواهد شد.

ایجاد گروه:

حالا به پشتیبانی بخش OU بروید و یک گروه جدید ایجاد کنید (به عنوان مثال support_group).

 

نام گروه را وارد کنید و Ok را کلیک کنید.

 

 

گروه جدید تحت بخش Unixmen / Support ایجاد خواهد شد.

ایجاد کاربر:

بر روی Support_group کلیک راست کرده و New -> User را کلیک کنید.

 

 

جزییات کاربر مانند نام،نام خانوادگی،idو.... را وارد کنید.

 

به واحد های سازماندهی،گروه ها و کاربر با دستور زیر رسیدگس میکنیم:

# ldapsearch -x -b "dc=unixmen,dc=local"

 

نمونه خروجی:

 

# extended LDIF
#
# LDAPv3
# base <dc=unixmen,dc=local> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
 
# unixmen.local
dn: dc=unixmen,dc=local
objectClass: top
objectClass: domain
dc: unixmen
 
# Directory Administrators, unixmen.local
dn: cn=Directory Administrators,dc=unixmen,dc=local
objectClass: top
objectClass: groupofuniquenames
cn: Directory Administrators
uniqueMember: cn=Directory Manager
 
# Groups, unixmen.local
dn: ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: organizationalunit
ou: Groups
 
# People, unixmen.local
dn: ou=People,dc=unixmen,dc=local
objectClass: top
objectClass: organizationalunit
ou: People
 
# Special Users, unixmen.local
dn: ou=Special Users,dc=unixmen,dc=local
objectClass: top
objectClass: organizationalUnit
ou: Special Users
description: Special Administrative Accounts
 
# Accounting Managers, Groups, unixmen.local
dn: cn=Accounting Managers,ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: groupOfUniqueNames
cn: Accounting Managers
ou: groups
description: People who can manage accounting entries
uniqueMember: cn=Directory Manager
 
# HR Managers, Groups, unixmen.local
dn: cn=HR Managers,ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: groupOfUniqueNames
cn: HR Managers
ou: groups
description: People who can manage HR entries
uniqueMember: cn=Directory Manager
 
# QA Managers, Groups, unixmen.local
dn: cn=QA Managers,ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: groupOfUniqueNames
cn: QA Managers
ou: groups
description: People who can manage QA entries
uniqueMember: cn=Directory Manager
 
# PD Managers, Groups, unixmen.local
dn: cn=PD Managers,ou=Groups,dc=unixmen,dc=local
objectClass: top
objectClass: groupOfUniqueNames
cn: PD Managers
ou: groups
description: People who can manage engineer entries
uniqueMember: cn=Directory Manager
 
# Support Division, unixmen.local
dn: ou=Support Division,dc=unixmen,dc=local
ou: Support Division
objectClass: top
objectClass: organizationalunit
 
# support_group, Support Division, unixmen.local
dn: cn=support_group,ou=Support Division,dc=unixmen,dc=local
objectClass: top
objectClass: groupofuniquenames
cn: support_group
 
# skumar, support_group, Support Division, unixmen.local
dn: uid=skumar,cn=support_group,ou=Support Division,dc=unixmen,dc=local
mail: sk@unixmen.com
uid: skumar
givenName: senthil
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
sn: kumar
cn: senthil kumar
 
# search result
search: 2
result: 0 Success
 
# numResponses: 13
# numEntries: 12

 

منبع:

https://www.unixmen.com/setup-directory-serverldap-in-centos-6-4-rhel-6-4/