ldap.adoc 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. [[servlet-authentication-ldap]]
  2. = LDAP Authentication
  3. LDAP (Lightweight Directory Access Protocol) is often used by organizations as a central repository for user information and as an authentication service.
  4. It can also be used to store the role information for application users.
  5. Spring Security's LDAP-based authentication is used by Spring Security when it is configured to xref:servlet/authentication/passwords/index.adoc#servlet-authentication-unpwd-input[accept a username/password] for authentication.
  6. However, despite using a username and password for authentication, it does not use `UserDetailsService`, because, in <<servlet-authentication-ldap-bind,bind authentication>>, the LDAP server does not return the password, so the application cannot perform validation of the password.
  7. There are many different scenarios for how an LDAP server can be configured, so Spring Security's LDAP provider is fully configurable.
  8. It uses separate strategy interfaces for authentication and role retrieval and provides default implementations, which can be configured to handle a wide range of situations.
  9. [[servlet-authentication-ldap-required-dependencies]]
  10. == Required Dependencies
  11. To get started, add the `spring-security-ldap` dependency to your project.
  12. When using Spring Boot, add the following dependencies:
  13. .Spring Security LDAP Dependencies
  14. [tabs]
  15. ======
  16. Maven::
  17. +
  18. [source,xml,role="primary"]
  19. ----
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-data-ldap</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.security</groupId>
  26. <artifactId>spring-security-ldap</artifactId>
  27. </dependency>
  28. ----
  29. Gradle::
  30. +
  31. [source,groovy,role="secondary"]
  32. ----
  33. depenendencies {
  34. implementation "org.springframework.boot:spring-boot-starter-data-ldap"
  35. implementation "org.springframework.security:spring-security-ldap"
  36. }
  37. ----
  38. ======
  39. [[servlet-authentication-ldap-prerequisites]]
  40. == Prerequisites
  41. You should be familiar with LDAP before trying to use it with Spring Security.
  42. The following link provides a good introduction to the concepts involved and a guide to setting up a directory using the free LDAP server, OpenLDAP: https://www.zytrax.com/books/ldap/.
  43. Some familiarity with the JNDI APIs used to access LDAP from Java can also be useful.
  44. We do not use any third-party LDAP libraries (Mozilla, JLDAP, or others) in the LDAP provider, but extensive use is made of Spring LDAP, so some familiarity with that project may be useful if you plan on adding your own customizations.
  45. When using LDAP authentication, you should ensure that you properly configure LDAP connection pooling.
  46. If you are unfamiliar with how to do so, see the https://docs.oracle.com/javase/jndi/tutorial/ldap/connect/config.html[Java LDAP documentation].
  47. // FIXME:
  48. // ldap server
  49. // embedded (both java and xml)
  50. // external
  51. // authentication
  52. // bind
  53. // password
  54. // roles
  55. // search, etc (other APIs)
  56. [[servlet-authentication-ldap-embedded]]
  57. == Setting up an Embedded LDAP Server
  58. The first thing you need to do is to ensure that you have an LDAP Server to which to point your configuration.
  59. For simplicity, it is often best to start with an embedded LDAP Server.
  60. Spring Security supports using either:
  61. * <<servlet-authentication-ldap-unboundid>>
  62. * <<servlet-authentication-ldap-apacheds>>
  63. In the following samples, we expose `users.ldif` as a classpath resource to initialize the embedded LDAP server with two users, `user` and `admin`, both of which have a password of `password`:
  64. .users.ldif
  65. [source,ldif]
  66. ----
  67. dn: ou=groups,dc=springframework,dc=org
  68. objectclass: top
  69. objectclass: organizationalUnit
  70. ou: groups
  71. dn: ou=people,dc=springframework,dc=org
  72. objectclass: top
  73. objectclass: organizationalUnit
  74. ou: people
  75. dn: uid=admin,ou=people,dc=springframework,dc=org
  76. objectclass: top
  77. objectclass: person
  78. objectclass: organizationalPerson
  79. objectclass: inetOrgPerson
  80. cn: Rod Johnson
  81. sn: Johnson
  82. uid: admin
  83. userPassword: password
  84. dn: uid=user,ou=people,dc=springframework,dc=org
  85. objectclass: top
  86. objectclass: person
  87. objectclass: organizationalPerson
  88. objectclass: inetOrgPerson
  89. cn: Dianne Emu
  90. sn: Emu
  91. uid: user
  92. userPassword: password
  93. dn: cn=user,ou=groups,dc=springframework,dc=org
  94. objectclass: top
  95. objectclass: groupOfNames
  96. cn: user
  97. member: uid=admin,ou=people,dc=springframework,dc=org
  98. member: uid=user,ou=people,dc=springframework,dc=org
  99. dn: cn=admin,ou=groups,dc=springframework,dc=org
  100. objectclass: top
  101. objectclass: groupOfNames
  102. cn: admin
  103. member: uid=admin,ou=people,dc=springframework,dc=org
  104. ----
  105. [[servlet-authentication-ldap-unboundid]]
  106. === Embedded UnboundID Server
  107. If you wish to use https://ldap.com/unboundid-ldap-sdk-for-java/[UnboundID], specify the following dependencies:
  108. .UnboundID Dependencies
  109. [tabs]
  110. ======
  111. Maven::
  112. +
  113. [source,xml,role="primary",subs="verbatim,attributes"]
  114. ----
  115. <dependency>
  116. <groupId>com.unboundid</groupId>
  117. <artifactId>unboundid-ldapsdk</artifactId>
  118. <version>{unboundid-ldapsdk-version}</version>
  119. <scope>runtime</scope>
  120. </dependency>
  121. ----
  122. Gradle::
  123. +
  124. [source,groovy,role="secondary",subs="verbatim,attributes"]
  125. ----
  126. depenendencies {
  127. runtimeOnly "com.unboundid:unboundid-ldapsdk:{unboundid-ldapsdk-version}"
  128. }
  129. ----
  130. ======
  131. You can then configure the Embedded LDAP Server using an `EmbeddedLdapServerContextSourceFactoryBean`.
  132. This will instruct Spring Security to start an in-memory LDAP server:
  133. .Embedded LDAP Server Configuration
  134. [tabs]
  135. ======
  136. Java::
  137. +
  138. [source,java,role="primary"]
  139. ----
  140. @Bean
  141. public EmbeddedLdapServerContextSourceFactoryBean contextSourceFactoryBean() {
  142. return EmbeddedLdapServerContextSourceFactoryBean.fromEmbeddedLdapServer();
  143. }
  144. ----
  145. Kotlin::
  146. +
  147. [source,kotlin,role="secondary"]
  148. ----
  149. @Bean
  150. fun contextSourceFactoryBean(): EmbeddedLdapServerContextSourceFactoryBean {
  151. return EmbeddedLdapServerContextSourceFactoryBean.fromEmbeddedLdapServer()
  152. }
  153. ----
  154. ======
  155. Alternatively, you can manually configure the Embedded LDAP Server.
  156. If you choose this approach, you will be responsible for managing the lifecycle of the Embedded LDAP Server.
  157. .Explicit Embedded LDAP Server Configuration
  158. [tabs]
  159. ======
  160. Java::
  161. +
  162. [source,java,role="primary"]
  163. ----
  164. @Bean
  165. UnboundIdContainer ldapContainer() {
  166. return new UnboundIdContainer("dc=springframework,dc=org",
  167. "classpath:users.ldif");
  168. }
  169. ----
  170. XML::
  171. +
  172. [source,xml,role="secondary"]
  173. ----
  174. <b:bean class="org.springframework.security.ldap.server.UnboundIdContainer"
  175. c:defaultPartitionSuffix="dc=springframework,dc=org"
  176. c:ldif="classpath:users.ldif"/>
  177. ----
  178. Kotlin::
  179. +
  180. [source,kotlin,role="secondary"]
  181. ----
  182. @Bean
  183. fun ldapContainer(): UnboundIdContainer {
  184. return UnboundIdContainer("dc=springframework,dc=org","classpath:users.ldif")
  185. }
  186. ----
  187. ======
  188. [[servlet-authentication-ldap-apacheds]]
  189. === Embedded ApacheDS Server
  190. Spring Security 7 removes support for Apache DS.
  191. Please use <<servlet-authentication-ldap-unboundid,UnboundID>> instead.
  192. [[servlet-authentication-ldap-contextsource]]
  193. == LDAP ContextSource
  194. Once you have an LDAP Server to which to point your configuration, you need to configure Spring Security to point to an LDAP server that should be used to authenticate users.
  195. To do so, create an LDAP `ContextSource` (which is the equivalent of a JDBC `DataSource`).
  196. If you have already configured an `EmbeddedLdapServerContextSourceFactoryBean`, Spring Security will create an LDAP `ContextSource` that points to the embedded LDAP server.
  197. .LDAP Context Source with Embedded LDAP Server
  198. [tabs]
  199. ======
  200. Java::
  201. +
  202. [source,java,role="primary"]
  203. ----
  204. @Bean
  205. public EmbeddedLdapServerContextSourceFactoryBean contextSourceFactoryBean() {
  206. EmbeddedLdapServerContextSourceFactoryBean contextSourceFactoryBean =
  207. EmbeddedLdapServerContextSourceFactoryBean.fromEmbeddedLdapServer();
  208. contextSourceFactoryBean.setPort(0);
  209. return contextSourceFactoryBean;
  210. }
  211. ----
  212. Kotlin::
  213. +
  214. [source,kotlin,role="secondary"]
  215. ----
  216. @Bean
  217. fun contextSourceFactoryBean(): EmbeddedLdapServerContextSourceFactoryBean {
  218. val contextSourceFactoryBean = EmbeddedLdapServerContextSourceFactoryBean.fromEmbeddedLdapServer()
  219. contextSourceFactoryBean.setPort(0)
  220. return contextSourceFactoryBean
  221. }
  222. ----
  223. ======
  224. Alternatively, you can explicitly configure the LDAP `ContextSource` to connect to the supplied LDAP server:
  225. .LDAP Context Source
  226. [tabs]
  227. ======
  228. Java::
  229. +
  230. [source,java,role="primary"]
  231. ----
  232. ContextSource contextSource(UnboundIdContainer container) {
  233. return new DefaultSpringSecurityContextSource("ldap://localhost:53389/dc=springframework,dc=org");
  234. }
  235. ----
  236. XML::
  237. +
  238. [source,xml,role="secondary"]
  239. ----
  240. <ldap-server
  241. url="ldap://localhost:53389/dc=springframework,dc=org" />
  242. ----
  243. Kotlin::
  244. +
  245. [source,kotlin,role="secondary"]
  246. ----
  247. fun contextSource(container: UnboundIdContainer): ContextSource {
  248. return DefaultSpringSecurityContextSource("ldap://localhost:53389/dc=springframework,dc=org")
  249. }
  250. ----
  251. ======
  252. [[servlet-authentication-ldap-authentication]]
  253. == Authentication
  254. Spring Security's LDAP support does not use the xref:servlet/authentication/passwords/user-details-service.adoc#servlet-authentication-userdetailsservice[UserDetailsService] because LDAP bind authentication does not let clients read the password or even a hashed version of the password.
  255. This means there is no way for a password to be read and then authenticated by Spring Security.
  256. For this reason, LDAP support is implemented through the `LdapAuthenticator` interface.
  257. The `LdapAuthenticator` interface is also responsible for retrieving any required user attributes.
  258. This is because the permissions on the attributes may depend on the type of authentication being used.
  259. For example, if binding as the user, it may be necessary to read the attributes with the user's own permissions.
  260. Spring Security supplies two `LdapAuthenticator` implementations:
  261. * <<servlet-authentication-ldap-bind>>
  262. * <<servlet-authentication-ldap-pwd>>
  263. [[servlet-authentication-ldap-bind]]
  264. == Using Bind Authentication
  265. https://ldap.com/the-ldap-bind-operation/[Bind Authentication] is the most common mechanism for authenticating users with LDAP.
  266. In bind authentication, the user's credentials (username and password) are submitted to the LDAP server, which authenticates them.
  267. The advantage to using bind authentication is that the user's secrets (the password) do not need to be exposed to clients, which helps to protect them from leaking.
  268. The following example shows bind authentication configuration:
  269. .Bind Authentication
  270. [tabs]
  271. ======
  272. Java::
  273. +
  274. [source,java,role="primary",attrs="-attributes"]
  275. ----
  276. @Bean
  277. AuthenticationManager authenticationManager(BaseLdapPathContextSource contextSource) {
  278. LdapBindAuthenticationManagerFactory factory = new LdapBindAuthenticationManagerFactory(contextSource);
  279. factory.setUserDnPatterns("uid={0},ou=people");
  280. return factory.createAuthenticationManager();
  281. }
  282. ----
  283. XML::
  284. +
  285. [source,xml,role="secondary",attrs="-attributes"]
  286. ----
  287. <ldap-authentication-provider
  288. user-dn-pattern="uid={0},ou=people"/>
  289. ----
  290. Kotlin::
  291. +
  292. [source,kotlin,role="secondary",attrs="-attributes"]
  293. ----
  294. @Bean
  295. fun authenticationManager(contextSource: BaseLdapPathContextSource): AuthenticationManager {
  296. val factory = LdapBindAuthenticationManagerFactory(contextSource)
  297. factory.setUserDnPatterns("uid={0},ou=people")
  298. return factory.createAuthenticationManager()
  299. }
  300. ----
  301. ======
  302. The preceding simple example would obtain the DN for the user by substituting the user login name in the supplied pattern and attempting to bind as that user with the login password.
  303. This is OK if all your users are stored under a single node in the directory.
  304. If, instead, you wish to configure an LDAP search filter to locate the user, you could use the following:
  305. .Bind Authentication with Search Filter
  306. [tabs]
  307. ======
  308. Java::
  309. +
  310. [source,java,role="primary",attrs="-attributes"]
  311. ----
  312. @Bean
  313. AuthenticationManager authenticationManager(BaseLdapPathContextSource contextSource) {
  314. LdapBindAuthenticationManagerFactory factory = new LdapBindAuthenticationManagerFactory(contextSource);
  315. factory.setUserSearchFilter("(uid={0})");
  316. factory.setUserSearchBase("ou=people");
  317. return factory.createAuthenticationManager();
  318. }
  319. ----
  320. XML::
  321. +
  322. [source,xml,role="secondary",attrs="-attributes"]
  323. ----
  324. <ldap-authentication-provider
  325. user-search-filter="(uid={0})"
  326. user-search-base="ou=people"/>
  327. ----
  328. Kotlin::
  329. +
  330. [source,kotlin,role="secondary",attrs="-attributes"]
  331. ----
  332. @Bean
  333. fun authenticationManager(contextSource: BaseLdapPathContextSource): AuthenticationManager {
  334. val factory = LdapBindAuthenticationManagerFactory(contextSource)
  335. factory.setUserSearchFilter("(uid={0})")
  336. factory.setUserSearchBase("ou=people")
  337. return factory.createAuthenticationManager()
  338. }
  339. ----
  340. ======
  341. If used with the `ContextSource` <<servlet-authentication-ldap-contextsource,definition shown earlier>>, this would perform a search under the DN `ou=people,dc=springframework,dc=org` by using `+(uid={0})+` as a filter.
  342. Again, the user login name is substituted for the parameter in the filter name, so it searches for an entry with the `uid` attribute equal to the user name.
  343. If a user search base is not supplied, the search is performed from the root.
  344. [[servlet-authentication-ldap-pwd]]
  345. == Using Password Authentication
  346. Password comparison is when the password supplied by the user is compared with the one stored in the repository.
  347. This can either be done by retrieving the value of the password attribute and checking it locally or by performing an LDAP "`compare`" operation, where the supplied password is passed to the server for comparison and the real password value is never retrieved.
  348. An LDAP compare cannot be done when the password is properly hashed with a random salt.
  349. .Minimal Password Compare Configuration
  350. [tabs]
  351. ======
  352. Java::
  353. +
  354. [source,java,role="primary"]
  355. ----
  356. @Bean
  357. AuthenticationManager authenticationManager(BaseLdapPathContextSource contextSource) {
  358. LdapPasswordComparisonAuthenticationManagerFactory factory = new LdapPasswordComparisonAuthenticationManagerFactory(
  359. contextSource, NoOpPasswordEncoder.getInstance());
  360. factory.setUserDnPatterns("uid={0},ou=people");
  361. return factory.createAuthenticationManager();
  362. }
  363. ----
  364. XML::
  365. +
  366. [source,xml,role="secondary",attrs="-attributes"]
  367. ----
  368. <ldap-authentication-provider
  369. user-dn-pattern="uid={0},ou=people">
  370. <password-compare />
  371. </ldap-authentication-provider>
  372. ----
  373. Kotlin::
  374. +
  375. [source,kotlin,role="secondary"]
  376. ----
  377. @Bean
  378. fun authenticationManager(contextSource: BaseLdapPathContextSource?): AuthenticationManager? {
  379. val factory = LdapPasswordComparisonAuthenticationManagerFactory(
  380. contextSource, NoOpPasswordEncoder.getInstance()
  381. )
  382. factory.setUserDnPatterns("uid={0},ou=people")
  383. return factory.createAuthenticationManager()
  384. }
  385. ----
  386. ======
  387. The following example shows a more advanced configuration with some customizations:
  388. .Password Compare Configuration
  389. [tabs]
  390. ======
  391. Java::
  392. +
  393. [source,java,role="primary"]
  394. ----
  395. @Bean
  396. AuthenticationManager authenticationManager(BaseLdapPathContextSource contextSource) {
  397. LdapPasswordComparisonAuthenticationManagerFactory factory = new LdapPasswordComparisonAuthenticationManagerFactory(
  398. contextSource, new BCryptPasswordEncoder());
  399. factory.setUserDnPatterns("uid={0},ou=people");
  400. factory.setPasswordAttribute("pwd"); // <1>
  401. return factory.createAuthenticationManager();
  402. }
  403. ----
  404. XML::
  405. +
  406. [source,xml,role="secondary",attrs="-attributes"]
  407. ----
  408. <ldap-authentication-provider
  409. user-dn-pattern="uid={0},ou=people">
  410. <password-compare password-attribute="pwd"> <!--1-->
  411. <password-encoder ref="passwordEncoder" /> <!--2-->
  412. </password-compare>
  413. </ldap-authentication-provider>
  414. <b:bean id="passwordEncoder"
  415. class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder" />
  416. ----
  417. Kotlin::
  418. +
  419. [source,kotlin,role="secondary"]
  420. ----
  421. @Bean
  422. fun authenticationManager(contextSource: BaseLdapPathContextSource): AuthenticationManager {
  423. val factory = LdapPasswordComparisonAuthenticationManagerFactory(
  424. contextSource, BCryptPasswordEncoder()
  425. )
  426. factory.setUserDnPatterns("uid={0},ou=people")
  427. factory.setPasswordAttribute("pwd") // <1>
  428. return factory.createAuthenticationManager()
  429. }
  430. ----
  431. ======
  432. <1> Specify the password attribute as `pwd`.
  433. == LdapAuthoritiesPopulator
  434. Spring Security's `LdapAuthoritiesPopulator` is used to determine what authorities are returned for the user.
  435. The following example shows how configure `LdapAuthoritiesPopulator`:
  436. .LdapAuthoritiesPopulator Configuration
  437. [tabs]
  438. ======
  439. Java::
  440. +
  441. [source,java,role="primary",attrs="-attributes"]
  442. ----
  443. @Bean
  444. LdapAuthoritiesPopulator authorities(BaseLdapPathContextSource contextSource) {
  445. String groupSearchBase = "";
  446. DefaultLdapAuthoritiesPopulator authorities =
  447. new DefaultLdapAuthoritiesPopulator(contextSource, groupSearchBase);
  448. authorities.setGroupSearchFilter("member={0}");
  449. return authorities;
  450. }
  451. @Bean
  452. AuthenticationManager authenticationManager(BaseLdapPathContextSource contextSource, LdapAuthoritiesPopulator authorities) {
  453. LdapBindAuthenticationManagerFactory factory = new LdapBindAuthenticationManagerFactory(contextSource);
  454. factory.setUserDnPatterns("uid={0},ou=people");
  455. factory.setLdapAuthoritiesPopulator(authorities);
  456. return factory.createAuthenticationManager();
  457. }
  458. ----
  459. XML::
  460. +
  461. [source,xml,role="secondary",attrs="-attributes"]
  462. ----
  463. <ldap-authentication-provider
  464. user-dn-pattern="uid={0},ou=people"
  465. group-search-filter="member={0}"/>
  466. ----
  467. Kotlin::
  468. +
  469. [source,kotlin,role="secondary",attrs="-attributes"]
  470. ----
  471. @Bean
  472. fun authorities(contextSource: BaseLdapPathContextSource): LdapAuthoritiesPopulator {
  473. val groupSearchBase = ""
  474. val authorities = DefaultLdapAuthoritiesPopulator(contextSource, groupSearchBase)
  475. authorities.setGroupSearchFilter("member={0}")
  476. return authorities
  477. }
  478. @Bean
  479. fun authenticationManager(
  480. contextSource: BaseLdapPathContextSource,
  481. authorities: LdapAuthoritiesPopulator): AuthenticationManager {
  482. val factory = LdapBindAuthenticationManagerFactory(contextSource)
  483. factory.setUserDnPatterns("uid={0},ou=people")
  484. factory.setLdapAuthoritiesPopulator(authorities)
  485. return factory.createAuthenticationManager()
  486. }
  487. ----
  488. ======
  489. == Active Directory
  490. Active Directory supports its own non-standard authentication options, and the normal usage pattern does not fit too cleanly with the standard `LdapAuthenticationProvider`.
  491. Typically, authentication is performed by using the domain username (in the form of `user@domain`), rather than using an LDAP distinguished name.
  492. To make this easier, Spring Security has an authentication provider, which is customized for a typical Active Directory setup.
  493. Configuring `ActiveDirectoryLdapAuthenticationProvider` is quite straightforward.
  494. You need only supply the domain name and an LDAP URL that supplies the address of the server.
  495. [NOTE]
  496. ====
  497. It is also possible to obtain the server's IP address by using a DNS lookup.
  498. This is not currently supported, but hopefully will be in a future version.
  499. ====
  500. The following example configures Active Directory:
  501. .Example Active Directory Configuration
  502. [tabs]
  503. ======
  504. Java::
  505. +
  506. [source,java,role="primary"]
  507. ----
  508. @Bean
  509. ActiveDirectoryLdapAuthenticationProvider authenticationProvider() {
  510. return new ActiveDirectoryLdapAuthenticationProvider("example.com", "ldap://company.example.com/");
  511. }
  512. ----
  513. XML::
  514. +
  515. [source,xml,role="secondary"]
  516. ----
  517. <bean id="authenticationProvider"
  518. class="org.springframework.security.ldap.authentication.ad.ActiveDirectoryLdapAuthenticationProvider">
  519. <constructor-arg value="example.com" />
  520. <constructor-arg value="ldap://company.example.com/" />
  521. </bean>
  522. ----
  523. Kotlin::
  524. +
  525. [source,kotlin,role="secondary"]
  526. ----
  527. @Bean
  528. fun authenticationProvider(): ActiveDirectoryLdapAuthenticationProvider {
  529. return ActiveDirectoryLdapAuthenticationProvider("example.com", "ldap://company.example.com/")
  530. }
  531. ----
  532. ======