Solaris10安装光盘自带了iPlanet Directory Server安装包,系统管理员可以利用iPlanet Directory Server在Solaris系统创建一个LDAP Server。

LDAP Server : 10.0.22.20

LDAP Client : 10.0.22.30

1. 安装配置LDAP Server

1.1 在LDAP服务器上设置缺省域名

  1. 设置缺省域名:
  2. root@ladpsrv # domainname local.com
  3. root@ladpsrv # domainname > /etc/defaultdomain
  4. root@ladpsrv # more /etc/defaultdomain
  5. local.com
  6.  
  7. 将域名信息加入/etc/hosts文件
  8. root@ladpsrv # more /etc/hosts
  9. #
  10. # Internet host table
  11. #
  12. ::1 localhost
  13. 127.0.0.1 localhost
  14. 10.0.22.20 ldapsrv ldapsrv.local.com loghost

1.2 安装iPlanet Directory Server软件包

  1. root@ladpsrv # cd /cdrom/sol_10_811_x86/Solaris_10/Product/
  2.  
  3. root@ladpsrv # pkgadd -d . IPLTnspr
  4. root@ladpsrv # pkgadd -d . IPLTnss
  5. root@ladpsrv # pkgadd -d . IPLTjss
  6. root@ladpsrv # pkgadd -d . IPLTnls
  7. root@ladpsrv # pkgadd -d . IPLTpldap
  8. root@ladpsrv # pkgadd -d . IPLTdsu
  9. root@ladpsrv # pkgadd -d . IPLTdsr

1.3 配置LDAP Server

  1. root@ladpsrv # directoryserver setup
  2. /usr/iplanet/ds5/setup/setup -S
  3.  
  4. Sun-Netscape Alliance
  5. iPlanet Server Products Configuration
  6. --------------------------------------------------------------------------------
  7.  
  8. Welcome to the iPlanet Server Products configuration program
  9. This program will configure iPlanet Server Products and the
  10. iPlanet Console on your computer.
  11.  
  12. You must have "root" privilege to configure the
  13. software.
  14.  
  15. Tips for using the configuration program:
  16. - Press "Enter" to choose the default and go to the next screen
  17. - Type "Control-B" to go back to the previous screen
  18. - Type "Control-C" to cancel the configuration program
  19. - You can enter multiple items using commas to separate them.
  20. For example: 1, 2, 3
  21.  
  22. Would you like to continue with configuration? [Yes]: <回车>
  23.  
  24. Sun-Netscape Alliance
  25. iPlanet Server Products Configuration
  26. --------------------------------------------------------------------------------
  27.  
  28. Select the items you would like to configure:
  29.  
  30. 1. iPlanet Servers
  31. Configures iPlanet Servers with the integrated iPlanet Console
  32. onto your computer.
  33.  
  34. 2. iPlanet Console
  35. Configures iPlanet Console
  36. as a stand-alone Java application on your computer.
  37.  
  38. To accept the default shown in brackets, press the Enter key.
  39.  
  40. Select the component you want to configure [1]: <回车>
  41.  
  42. Sun-Netscape Alliance
  43. iPlanet Server Products Configuration
  44. --------------------------------------------------------------------------------
  45.  
  46. Choose a configuration type:
  47.  
  48. 1. Express Configuration
  49. Allows you to quickly configure the servers using the most
  50. common options and pre-defined defaults. Useful for quick
  51. evaluation of the products.
  52.  
  53. 2. Typical Configuration
  54. Allows you to specify common defaults and options.
  55.  
  56. 3. Custom Configuration
  57. Allows you to specify more advanced options. This is
  58. recommended for experienced server administrators only.
  59.  
  60. To accept the default shown in brackets, press the Enter key.
  61.  
  62. Choose a configuration type [2]: <回车>
  63.  
  64. Sun-Netscape Alliance
  65. iPlanet Server Products Configuration
  66. --------------------------------------------------------------------------------
  67.  
  68. iPlanet Server Products components:
  69.  
  70. Components with a number in () contain additional subcomponents
  71. which you can select using subsequent screens.
  72.  
  73. 1. iPlanet Directory Suite (2)
  74.  
  75. Specify the components you wish to configure [All]: <回车>
  76.  
  77. Sun-Netscape Alliance
  78. iPlanet Server Products Configuration
  79. --------------------------------------------------------------------------------
  80.  
  81. iPlanet Directory Suite components:
  82.  
  83. Components with a number in () contain additional subcomponents
  84. which you can select using subsequent screens.
  85.  
  86. 1. iPlanet Directory Server
  87. 2. iPlanet Directory Server Console
  88.  
  89. Specify the components you wish to configure [1, 2]: <回车>
  90.  
  91. Sun-Netscape Alliance
  92. iPlanet Server Products Configuration
  93. --------------------------------------------------------------------------------
  94.  
  95. Enter the fully qualified domain name of the computer
  96. on which you're configuring server software. Using the form
  97. <hostname>.<domainname>
  98. Example: eros.airius.com.
  99.  
  100. To accept the default shown in brackets, press the Enter key.
  101.  
  102. Computer name [ladpsrv.local.com]: <回车>
  103.  
  104. Sun-Netscape Alliance
  105. iPlanet Server Products Configuration
  106. --------------------------------------------------------------------------------
  107.  
  108. Choose a Unix user and group to represent the iPlanet server
  109. in the user directory. The iPlanet server will run as this user.
  110. It is recommended that this user should have no privileges
  111. in the computer network system. The Administration Server
  112. will give this group some permissions in the server root
  113. to perform server-specific operations.
  114.  
  115. If you have not yet created a user and group for the iPlanet
  116. server,create this user and group using your native UNIX
  117. system utilities.
  118.  
  119. To accept the default shown in brackets, press the Return key.
  120.  
  121. System User [nobody]: <回车>
  122.  
  123. System Group [nobody]: <回车>
  124.  
  125. Sun-Netscape Alliance
  126. Directory Configuration
  127. --------------------------------------------------------------------------------
  128.  
  129. iPlanet server information is stored in the iPlanet configuration
  130. directory server, which you may have already set up. If so, you
  131. should configure this server to be managed by the configuration
  132. server. To do so, the following information about the configuration
  133. server is required: the fully qualified host name of the form
  134. <hostname>.<domainname>(e.g. hostname.domain.com), the port number,
  135. the suffix, and the DN and password of a user having permission to
  136. write the configuration information, usually the iPlanet
  137. configuration directory administrator.
  138.  
  139. If you want to install this software as a standalone server, or if you
  140. want this instance to serve as your iPlanet configuration directory
  141. server, press Enter.
  142.  
  143. Do you want to register this software with an existing
  144. iPlanet configuration directory server? [No]: <回车>
  145.  
  146. Sun-Netscape Alliance
  147. Directory Configuration
  148. --------------------------------------------------------------------------------
  149.  
  150. If you already have a directory server you want to use to store your
  151. data, such as user and group information, answer Yes to the following
  152. question. You will be prompted for the host, port, suffix, and bind
  153. DN to use for that directory server.
  154.  
  155. If you want this directory server to store your data, answer No.
  156.  
  157. Do you want to use another directory to store your data? [No]: <回车>
  158.  
  159. Sun-Netscape Alliance
  160. Directory Configuration
  161. --------------------------------------------------------------------------------
  162.  
  163. The standard directory server network port number is 389. However, if
  164. you are not logged as the superuser, or port 389 is in use, the
  165. default value will be a random unused port number greater than 1024.
  166. If you want to use port 389, make sure that you are logged in as the
  167. superuser, that port 389 is not in use, and that you run the admin
  168. server as the superuser.
  169.  
  170. Directory server network port [389]: <回车>
  171.  
  172. Sun-Netscape Alliance
  173. Directory Configuration
  174. --------------------------------------------------------------------------------
  175.  
  176. Each instance of a directory server requires a unique identifier.
  177. Press Enter to accept the default, or type in another name and press
  178. Enter.
  179.  
  180. Directory server identifier [ladpsrv]: <回车>
  181.  
  182. Sun-Netscape Alliance
  183. Directory Configuration
  184. --------------------------------------------------------------------------------
  185.  
  186. Please enter the administrator ID for the iPlanet configuration
  187. directory server. This is the ID typically used to log in to the
  188. console. You will also be prompted for the password.
  189.  
  190. iPlanet configuration directory server
  191. administrator ID [admin]: <回车>
  192.  
  193. Password: password (密码)
  194. Password (again): password (密码)
  195.  
  196. Sun-Netscape Alliance
  197. Directory Configuration
  198. --------------------------------------------------------------------------------
  199.  
  200. The suffix is the root of your directory tree. You may have more than
  201. one suffix.
  202.  
  203. Suffix [dc=local, dc=com]: <回车>
  204.  
  205. Sun-Netscape Alliance
  206. Directory Configuration
  207. --------------------------------------------------------------------------------
  208.  
  209. Certain directory server operations require an administrative user.
  210. This user is referred to as the Directory Manager and typically has a
  211. bind Distinguished Name (DN) of cn=Directory Manager. Press Enter to
  212. accept the default value, or enter another DN. In either case, you
  213. will be prompted for the password for this user. The password must
  214. be at least 8 characters long.
  215.  
  216. Directory Manager DN [cn=Directory Manager]: <回车>
  217.  
  218. Password: password (密码)
  219. Password (again): password (密码)
  220.  
  221. Sun-Netscape Alliance
  222. Directory Configuration
  223. --------------------------------------------------------------------------------
  224.  
  225. The Administration Domain is a part of the configuration directory
  226. server used to store information about iPlanet software. If you are
  227. managing multiple software releases at the same time, or managing
  228. information about multiple domains, you may use the Administration
  229. Domain to keep them separate.
  230.  
  231. If you are not using administrative domains, press Enter to select the
  232. default. Otherwise, enter some descriptive, unique name for the
  233. administration domain, such as the name of the organization responsible
  234. for managing the domain.
  235.  
  236. Administration Domain [local.com]: <回车>
  237.  
  238. [slapd-ldapsrv]: starting up server ...
  239. [slapd-ldapsrv]: [29/Nov/2013:15:31:28 +0800] - iPlanet-Directory/5.1 B2002.283.1739 starting up
  240. [slapd-ldapsrv]: [29/Nov/2013:15:31:28 +0800] - slapd started. Listening on all interfaces port 389 for LDAP requests
  241. Your new directory server has been started.
  242. Created new Directory Server
  243. Start Slapd Starting Slapd server configuration.
  244. Success Slapd Added Directory Server information to Configuration Server.
  245.  
  246. Press Return to continue...
  247.  
  248. root@ldapsrv #

1.4 配置LDAP Server支持Solaris 9 OE clients

运行idsconfig脚本。

  1. root@ldapsrv # cd /usr/lib/ldap
  2. root@ldapsrv # ./idsconfig
  3. It is strongly recommended that you BACKUP the directory server
  4. before running idsconfig.
  5.  
  6. Hit Ctrl-C at any time before the final confirmation to exit.
  7.  
  8. Do you wish to continue with server setup (y/n/h)? [n] y
  9. Enter the Directory Server's hostname to setup: ldapsrv
  10. Enter the port number for DSEE (h=help): [389] <回车>
  11. Enter the directory manager DN: [cn=Directory Manager] <回车>
  12. Enter passwd for cn=Directory Manager : password
  13. Enter the domainname to be served (h=help): [local.com] <回车>
  14. Enter LDAP Base DN (h=help): [dc=local,dc=com] <回车>
  15. Checking LDAP Base DN ...
  16. Validating LDAP Base DN and Suffix ...
  17. sasl/GSSAPI is not supported by this LDAP server
  18. Enter the profile name (h=help): [default] <回车>
  19. Default server list (h=help): [10.0.22.20] <回车>
  20. Preferred server list (h=help): <回车>
  21. Choose desired search scope (one, sub, h=help): [one] <回车>
  22. The following are the supported credential levels:
  23. 1 anonymous
  24. 2 proxy
  25. 3 proxy anonymous
  26. 4 self
  27. 5 self proxy
  28. 6 self proxy anonymous
  29. Choose Credential level [h=help]: [1] 2
  30. The following are the supported Authentication Methods:
  31. 1 none
  32. 2 simple
  33. 3 sasl/DIGEST-MD5
  34. 4 tls:simple
  35. 5 tls:sasl/DIGEST-MD5
  36. 6 sasl/GSSAPI
  37. Choose Authentication Method (h=help): [1] 2
  38.  
  39. Current authenticationMethod: simple
  40.  
  41. Do you want to add another Authentication Method? n
  42. Do you want the clients to follow referrals (y/n/h)? [n] <回车>
  43. Do you want to modify the server timelimit value (y/n/h)? [n] <回车>
  44. Do you want to modify the server sizelimit value (y/n/h)? [n] <回车>
  45. Do you want to store passwords in "crypt" format (y/n/h)? [n] y
  46. Do you want to setup a Service Authentication Methods (y/n/h)? [n] <回车>
  47. Client search time limit in seconds (h=help): [30] <回车>
  48. Profile Time To Live in seconds (h=help): [43200] <回车>
  49. Bind time limit in seconds (h=help): [10] <回车>
  50. Do you want to enable shadow update (y/n/h)? [n] <回车>
  51. Do you wish to setup Service Search Descriptors (y/n/h)? [n] <回车>
  52.  
  53. Summary of Configuration
  54.  
  55. 1 Domain to serve : local.com
  56. 2 Base DN to setup : dc=local,dc=com
  57. 3 Profile name to create : default
  58. 4 Default Server List : 10.0.22.20
  59. 5 Preferred Server List :
  60. 6 Default Search Scope : one
  61. 7 Credential Level : proxy
  62. 8 Authentication Method : simple
  63. 9 Enable Follow Referrals : FALSE
  64. 10 DSEE Time Limit :
  65. 11 DSEE Size Limit :
  66. 12 Enable crypt password storage : TRUE
  67. 13 Service Auth Method pam_ldap :
  68. 14 Service Auth Method keyserv :
  69. 15 Service Auth Method passwd-cmd:
  70. 16 Search Time Limit : 30
  71. 17 Profile Time to Live : 43200
  72. 18 Bind Limit : 10
  73. 19 Enable shadow update : FALSE
  74. 20 Service Search Descriptors Menu
  75.  
  76. Enter config value to change: (1-20 0=commit changes) [0] <回车>
  77. Enter DN for proxy agent: [cn=proxyagent,ou=profile,dc=local,dc=com] <回车>
  78. Enter passwd for proxyagent: password
  79. Re-enter passwd: password
  80.  
  81. WARNING: About to start committing changes. (y=continue, n=EXIT) y
  82. 1. Changed passwordstoragescheme to "crypt" in cn=config.
  83. 2. Schema attributes have been updated.
  84. 3. Schema objectclass definitions have been added.
  85. 4. NisDomainObject added to dc=local,dc=com.
  86. 5. Top level "ou" containers complete.
  87. 6. automount maps: auto_home auto_direct auto_master auto_shared processed.
  88. 7. ACI for dc=local,dc=com modified to disable self modify.
  89. 8. Add of VLV Access Control Information (ACI).
  90. 9. Proxy Agent cn=proxyagent,ou=profile,dc=local,dc=com added.
  91. 10. Give cn=proxyagent,ou=profile,dc=local,dc=com read permission for password.
  92. 11. Generated client profile and loaded on server.
  93. 12. Processing eq,pres indexes:
  94. uidNumber (eq,pres) Finished indexing.
  95. ipNetworkNumber (eq,pres) Finished indexing.
  96. gidnumber (eq,pres) Finished indexing.
  97. oncrpcnumber (eq,pres) Finished indexing.
  98. automountKey (eq,pres) Finished indexing.
  99. 13. Processing eq,pres,sub indexes:
  100. ipHostNumber (eq,pres,sub) Finished indexing.
  101. membernisnetgroup (eq,pres,sub) Finished indexing.
  102. nisnetgrouptriple (eq,pres,sub) Finished indexing.
  103. 14. Processing VLV indexes:
  104. local.com.getgrent vlv_index Entry created
  105. local.com.gethostent vlv_index Entry created
  106. local.com.getnetent vlv_index Entry created
  107. local.com.getpwent vlv_index Entry created
  108. local.com.getrpcent vlv_index Entry created
  109. local.com.getspent vlv_index Entry created
  110. local.com.getauhoent vlv_index Entry created
  111. local.com.getsoluent vlv_index Entry created
  112. local.com.getauduent vlv_index Entry created
  113. local.com.getauthent vlv_index Entry created
  114. local.com.getexecent vlv_index Entry created
  115. local.com.getprofent vlv_index Entry created
  116. local.com.getmailent vlv_index Entry created
  117. local.com.getbootent vlv_index Entry created
  118. local.com.getethent vlv_index Entry created
  119. local.com.getngrpent vlv_index Entry created
  120. local.com.getipnent vlv_index Entry created
  121. local.com.getmaskent vlv_index Entry created
  122. local.com.getprent vlv_index Entry created
  123. local.com.getip4ent vlv_index Entry created
  124. local.com.getip6ent vlv_index Entry created
  125.  
  126. idsconfig: Setup of DSEE server ldapsrv is complete.
  127.  
  128. Note: idsconfig has created entries for VLV indexes.
  129.  
  130. For DS5.x, use the directoryserver(1m) script on ldapsrv
  131. to stop the server. Then, using directoryserver, follow the
  132. directoryserver examples below to create the actual VLV indexes.
  133.  
  134. For DSEE6.x or later, use dsadm command delivered with DS on ldapsrv
  135. to stop the server. Then, using dsadm, follow the
  136. dsadm examples below to create the actual VLV indexes.
  137.  
  138. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getgrent
  139. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.gethostent
  140. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getnetent
  141. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getpwent
  142. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getrpcent
  143. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getspent
  144. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getauhoent
  145. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getsoluent
  146. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getauduent
  147. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getauthent
  148. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getexecent
  149. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getprofent
  150. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getmailent
  151. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getbootent
  152. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getethent
  153. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getngrpent
  154. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getipnent
  155. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getmaskent
  156. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getprent
  157. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getip4ent
  158. directoryserver -s ldapsrv vlvindex -n userRoot -T local.com.getip6ent
  159.  
  160. <install-path>/bin/dsadm reindex -l -t local.com.getgrent <directory-instance-path> dc=local,dc=com
  161. <install-path>/bin/dsadm reindex -l -t local.com.gethostent <directory-instance-path> dc=local,dc=com
  162. <install-path>/bin/dsadm reindex -l -t local.com.getnetent <directory-instance-path> dc=local,dc=com
  163. <install-path>/bin/dsadm reindex -l -t local.com.getpwent <directory-instance-path> dc=local,dc=com
  164. <install-path>/bin/dsadm reindex -l -t local.com.getrpcent <directory-instance-path> dc=local,dc=com
  165. <install-path>/bin/dsadm reindex -l -t local.com.getspent <directory-instance-path> dc=local,dc=com
  166. <install-path>/bin/dsadm reindex -l -t local.com.getauhoent <directory-instance-path> dc=local,dc=com
  167. <install-path>/bin/dsadm reindex -l -t local.com.getsoluent <directory-instance-path> dc=local,dc=com
  168. <install-path>/bin/dsadm reindex -l -t local.com.getauduent <directory-instance-path> dc=local,dc=com
  169. <install-path>/bin/dsadm reindex -l -t local.com.getauthent <directory-instance-path> dc=local,dc=com
  170. <install-path>/bin/dsadm reindex -l -t local.com.getexecent <directory-instance-path> dc=local,dc=com
  171. <install-path>/bin/dsadm reindex -l -t local.com.getprofent <directory-instance-path> dc=local,dc=com
  172. <install-path>/bin/dsadm reindex -l -t local.com.getmailent <directory-instance-path> dc=local,dc=com
  173. <install-path>/bin/dsadm reindex -l -t local.com.getbootent <directory-instance-path> dc=local,dc=com
  174. <install-path>/bin/dsadm reindex -l -t local.com.getethent <directory-instance-path> dc=local,dc=com
  175. <install-path>/bin/dsadm reindex -l -t local.com.getngrpent <directory-instance-path> dc=local,dc=com
  176. <install-path>/bin/dsadm reindex -l -t local.com.getipnent <directory-instance-path> dc=local,dc=com
  177. <install-path>/bin/dsadm reindex -l -t local.com.getmaskent <directory-instance-path> dc=local,dc=com
  178. <install-path>/bin/dsadm reindex -l -t local.com.getprent <directory-instance-path> dc=local,dc=com
  179. <install-path>/bin/dsadm reindex -l -t local.com.getip4ent <directory-instance-path> dc=local,dc=com
  180. <install-path>/bin/dsadm reindex -l -t local.com.getip6ent <directory-instance-path> dc=local,dc=com
  181. root@ldapsrv #

2. 配置LDAP Client

2.1 在LDAP服务器上创建Client System Description文件

  1. root@ldapsrv # more /tmp/ldapclt.ldif
  2. dn: cn=ldapclt,ou=hosts,dc=local,dc=com
  3. changetype: add
  4. cn: ldapclt
  5. iphostnumber: 10.0.22.30
  6. objectclass: top
  7. objectclass: device
  8. objectclass: ipHost

2.2 将Client entry加入LDAP Server

  1. root@ldapsrv # ldapmodify -c -D "cn=directory manager" -w password -f /tmp/ldapclt.ldif
  2. adding new entry cn=ldapclt,ou=hosts,dc=local,dc=com

2.3 设置Client缺省域名,并将LDAP Server IP加入/etc/hosts

  1. root@ldapclt # domainname local.com
  2. root@ldapclt # domainname > /etc/defaultdomain
  3. root@ldapclt # more /etc/defaultdomain
  4. local.com
  5.  
  6. root@ldapclt # more /etc/hosts
  7. #
  8. # Internet host table
  9. #
  10. ::1 localhost
  11. 127.0.0.1 localhost
  12. 10.0.22.30 ldapclt ldapclt.local.com loghost

2.4 配置LDAP Client

  1. root@ldapclt # ldapclient -v init -a proxypassword=password -a proxydn=cn=proxyagent,ou=profile,dc=local,dc=com -a domainname=local.com 10.0.22.20
  2. Parsing proxypassword=password
  3. Parsing proxydn=cn=proxyagent,ou=profile,dc=local,dc=com
  4. Parsing domainname=local.com
  5. Arguments parsed:
  6. domainName: local.com
  7. proxyDN: cn=proxyagent,ou=profile,dc=local,dc=com
  8. proxyPassword: password
  9. defaultServerList: 10.0.22.20
  10. Handling init option
  11. About to configure machine by downloading a profile
  12. No profile specified. Using "default"
  13. Proxy DN: cn=proxyagent,ou=profile,dc=local,dc=com
  14. Proxy password: {NS1}ecfa88f3a945c411
  15. Credential level: 1
  16. Authentication method: 1
  17. Shadow Update is not enabled, no adminDN/adminPassword is required.
  18. About to modify this machines configuration by writing the files
  19. Stopping network services
  20. Stopping sendmail
  21. stop: sleep 100000 microseconds
  22. stop: network/smtp:sendmail... success
  23. Stopping nscd
  24. stop: sleep 100000 microseconds
  25. stop: sleep 200000 microseconds
  26. stop: system/name-service-cache:default... success
  27. Stopping autofs
  28. stop: sleep 100000 microseconds
  29. stop: sleep 200000 microseconds
  30. stop: sleep 400000 microseconds
  31. stop: sleep 800000 microseconds
  32. stop: sleep 1600000 microseconds
  33. stop: sleep 3200000 microseconds
  34. stop: system/filesystem/autofs:default... success
  35. ldap not running
  36. nisd not running
  37. nis(yp) not running
  38. file_backup: stat(/etc/nsswitch.conf)=0
  39. file_backup: (/etc/nsswitch.conf -> /var/ldap/restore/nsswitch.conf)
  40. file_backup: stat(/etc/defaultdomain)=0
  41. file_backup: (/etc/defaultdomain -> /var/ldap/restore/defaultdomain)
  42. file_backup: stat(/var/nis/NIS_COLD_START)=-1
  43. file_backup: No /var/nis/NIS_COLD_START file.
  44. file_backup: nis domain is "local.com"
  45. file_backup: stat(/var/yp/binding/local.com)=-1
  46. file_backup: No /var/yp/binding/local.com directory.
  47. file_backup: stat(/var/ldap/ldap_client_file)=-1
  48. file_backup: No /var/ldap/ldap_client_file file.
  49. Starting network services
  50. start: /usr/bin/domainname local.com... success
  51. start: sleep 100000 microseconds
  52. start: sleep 200000 microseconds
  53. start: network/ldap/client:default... success
  54. start: sleep 100000 microseconds
  55. start: system/filesystem/autofs:default... success
  56. start: sleep 100000 microseconds
  57. start: system/name-service-cache:default... success
  58. start: sleep 100000 microseconds
  59. start: network/smtp:sendmail... success
  60. restart: sleep 100000 microseconds
  61. restart: milestone/name-services:default... success
  62. System successfully configured

2.5 向LDAP Server导入相关信息

  1. 导入hosts信息:
  2. root@ldapclt # ldapaddent -D "cn=directory manager" -w password -a simple -f /etc/hosts hosts
  3. 3 entries added
  4. 导入passwd信息:
  5. root@ldapclt # ldapaddent -D "cn=directory manager" -w password -a simple -f /etc/passwd passwd
  6. 17 entries added
  7. 导入shadow信息:
  8. root@ldapclt # ldapaddent -D "cn=directory manager" -w password -a simple -f /etc/shadow shadow
  9. 17 entries added

2.6 检查导入的LDAP Client信息

  1. hosts信息:
  2. root@ldapclt # ldaplist hosts
  3. dn: cn=ldapclt,ou=hosts,dc=local,dc=com
  4.  
  5. dn: cn=ldapclt+ipHostNumber=10.0.22.30,ou=Hosts,dc=local,dc=com
  6.  
  7. dn: cn=localhost+ipHostNumber=::1,ou=Hosts,dc=local,dc=com
  8.  
  9. dn: cn=localhost+ipHostNumber=127.0.0.1,ou=Hosts,dc=local,dc=com
  10.  
  11. passwd信息:
  12. root@ldapclt # ldaplist passwd
  13. dn: uid=adm,ou=people,dc=local,dc=com
  14.  
  15. dn: uid=bin,ou=people,dc=local,dc=com
  16.  
  17. dn: uid=daemon,ou=people,dc=local,dc=com
  18.  
  19. dn: uid=gdm,ou=people,dc=local,dc=com
  20.  
  21. dn: uid=listen,ou=people,dc=local,dc=com
  22.  
  23. dn: uid=lp,ou=people,dc=local,dc=com
  24.  
  25. dn: uid=noaccess,ou=people,dc=local,dc=com
  26.  
  27. dn: uid=nobody,ou=people,dc=local,dc=com
  28.  
  29. dn: uid=nobody4,ou=people,dc=local,dc=com
  30.  
  31. dn: uid=nuucp,ou=people,dc=local,dc=com
  32.  
  33. dn: uid=postgres,ou=people,dc=local,dc=com
  34.  
  35. dn: uid=root,ou=people,dc=local,dc=com
  36.  
  37. dn: uid=smmsp,ou=people,dc=local,dc=com
  38.  
  39. dn: uid=svctag,ou=people,dc=local,dc=com
  40.  
  41. dn: uid=sys,ou=people,dc=local,dc=com
  42.  
  43. dn: uid=uucp,ou=people,dc=local,dc=com
  44.  
  45. dn: uid=webservd,ou=people,dc=local,dc=com

3. LDAP测试

在LDAP Server上新增加一个用户,测试新加用户能否登录LDAP Client。

3.1 LDAP Server上增加一个用户

  1. 创建LDIF文件:
  2. root@ldapsrv # more /tmp/adduser.ldif
  3. dn: uid=jyu,ou=people,dc=local,dc=com
  4. changetype: add
  5. objectClass: posixAccount
  6. objectClass: shadowAccount
  7. objectClass: account
  8. objectClass: top
  9. uid: jyu
  10. cn: jyu
  11. uidNumber: 1004
  12. gidNumber: 10
  13. homeDirectory: /home/jyu
  14. userpassword: jyu
  15.  
  16. 将用户信息加入LDAP
  17. root@ldapsrv # ldapmodify -D "cn=directory manager" -w password -f /tmp/adduser.ldif
  18. adding new entry uid=jyu,ou=people,dc=local,dc=com

3.2 用新建用户在LDAP Client上登录

以jyu/jyu在ldap client上进行登录测试,并更改用户密码。

Solaris10安装配置LDAP(iPlanet Directory Server )的更多相关文章

  1. CentOS 6.4安装配置ldap

    CentOS 6.5安装配置ldap 时间:2015-07-14 00:54来源:blog.51cto.com 作者:"ly36843运维" 博客 举报 点击:274次 一.安装l ...

  2. centos6.5安装配置LDAP服务[转]

    安装之前查一下 1 find / -name openldap* centos6.4默认安装了LDAP,但没有装ldap-server和ldap-client 于是yum安装 1 su root 2 ...

  3. 安装配置LDAP遇到的问题

    问题1:安装完启动ldap服务报错: ldap: unrecognized service? 原因在于新版的openldap将服务名改为了slapd,使用service slapd start即可启动 ...

  4. gitlab docker安装配置ldap

    镜像下载 直接从dockerhub 下载官方镜像即可 docker pull gitlab/gitlab-ce 首次运行 在某个位置创建一个文件夹并运行如下命令: docker run --hostn ...

  5. 2.Bacula Server端安装配置

    1.  Bacula Server端安装配置 1.1.  Bacula Server端安装 1.1.1.  安装bacula依赖包 For Centos6: yum install -y mysql ...

  6. Azkaban2.5安装部署(系统时区设置 + 安装和配置mysql + Azkaban Web Server 安装 + Azkaban Executor Server安装 + Azkaban web server插件安装 + Azkaban Executor Server 插件安装)(博主推荐)(五)

    Azkaban是什么?(一) Azkaban的功能特点(二) Azkaban的架构(三) Hadoop工作流引擎之Azkaban与Oozie对比(四) 不多说,直接上干货! http://www.cn ...

  7. centos directory server

    http://www.aliyun.com/zixun/content/3_12_517262.html CentOS系统安装Directory Server 8.1操作方法 发布时间:2014-12 ...

  8. RHEL7-openldap安装配置一(服务器端安装配置)

    LDAP的术语:entry:一个单独的单元,使用DN(distinguish name)区别attribute:entry的属性,比如,如果entry是组织机构的话,那么它的属性包括地址,电话,传真号 ...

  9. nfs原理及安装配置

    一.简介 二.工作原理 三.安装配置 一.简介 NFS(Network File System)即网络文件系统,它允许网络中的计算机之间通过网络共享资源.将NFS主机分享的目录,挂载到本地客户端当中, ...

随机推荐

  1. HDFS存档

    Hadoop存档 每个文件均按块方式存储,每个块的元数据存储在namenode的内存中,因此Hadoop存储小文件会非常低效.因为大量的小文件会耗尽namenode中的大部分内存.存储小文件所需的磁盘 ...

  2. ViewPagerAdapter 示例

    package com.ali.fridge.supermarket.module; /**  * Created by xiaomin.wxm on 2016/3/7.  */ import and ...

  3. BZOJ3242/UOJ126 [Noi2013]快餐店

    本文版权归ljh2000和博客园共有,欢迎转载,但须保留此声明,并给出原文链接,谢谢合作. 本文作者:ljh2000 作者博客:http://www.cnblogs.com/ljh2000-jump/ ...

  4. tp5定时器

    # 定时器 * * * * * cd /home/wwwroot/default/dexin/dragon && /usr/bin/php think order --option 1 ...

  5. Python 正则表达式匹配小数

    不废话,直接上表达式 (\d+(\.\d+)?) 如: import re find_float = lambda x: re.search("\d+(\.\d+)?",x) .g ...

  6. review01

    .java叫源文件,java编译器编译源文件后会产生字节码文件,java解释器将字节码文件加载进内存,java虚拟机来执行字节码文件. 如下列文件名为“String01.java” public cl ...

  7. ajax_基础

    ajax  请求过程 1.准备发送请求 2.填写请求地址和数据 3.请请求到服务器 4.等待服务器处理数据. 5.接受服务器返回信息 --------------------------------- ...

  8. mysql: instr 多个字段 like数据

    你是否一直在寻找比MySQL的LIKE语句更高效的方法的,下面我就为你介绍几种. SELECT * FROM `order_shop` where instr(uuid,  'b') > 0 g ...

  9. SpringBoot使用devtools导致的类型转换异常

    遇到的问题:SpringBoot项目中的热部署引发的血的教训,报错代码位置: XStream xStream1 = new XStream(); xStream1.autodetectAnnotati ...

  10. 有些事情不要强求 PS:日常收集语录

    有些事情不要强求 1.有些事,我们明知道是错的,也要去坚持,因为不甘心:有些人,我们明知道是爱的,也要去放弃,因为没结局:有时候,我们明知道没路了,却还在前行,因为习惯了. 2.以为蒙上了眼睛,就可以 ...