Zend_Ldap-API-Ldap-Node-RootDse.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- EN-Revision: 16831 -->
  3. <!-- Reviewed: no -->
  4. <sect3 id="zend.ldap.api.reference.zend-ldap-node-rootdse">
  5. <title>Zend_Ldap_Node_RootDse</title>
  6. <para>The following methods are available on all vendor-specific subclasses.</para>
  7. <para>
  8. <code>Zend_Ldap_Node_RootDse</code> includes the magic propery accessors
  9. <code>__get()</code> and <code>__isset()</code> to access the attributes by their
  10. name. They proxy to <code>Zend_Ldap_Node_RootDse::getAttribute()</code> and
  11. <code>Zend_Ldap_Node_RootDse::existsAttribute()</code> respectively.
  12. <code>__set()</code> and <code>__unset()</code> are also implemented but they throw
  13. a <code>BadMethodCallException</code> as modifications are not allowed on RootDSE
  14. nodes. Furthermore the class implements <code>ArrayAccess</code> for
  15. array-style-access to the attributes. <code>offsetSet()</code> and
  16. <code>offsetUnset()</code> also throw a <code>BadMethodCallException</code> due ro
  17. obvious reasons.
  18. </para>
  19. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.table">
  20. <title>Zend_Ldap_Node_RootDse API</title>
  21. <tgroup cols="2">
  22. <thead>
  23. <row>
  24. <entry>Method</entry>
  25. <entry>Description</entry>
  26. </row>
  27. </thead>
  28. <tbody>
  29. <row>
  30. <entry><code>Zend_Ldap_Dn getDn()</code></entry>
  31. <entry>Gets the DN of the current node as a Zend_Ldap_Dn.</entry>
  32. </row>
  33. <row>
  34. <entry><code>string getDnString(string $caseFold)</code></entry>
  35. <entry>Gets the DN of the current node as a string.</entry>
  36. </row>
  37. <row>
  38. <entry><code>array getDnArray(string $caseFold)</code></entry>
  39. <entry>Gets the DN of the current node as an array.</entry>
  40. </row>
  41. <row>
  42. <entry><code>string getRdnString(string $caseFold)</code></entry>
  43. <entry>Gets the <acronym>RDN</acronym> of the current node as a string.</entry>
  44. </row>
  45. <row>
  46. <entry><code>array getRdnArray(string $caseFold)</code></entry>
  47. <entry>Gets the <acronym>RDN</acronym> of the current node as an array.</entry>
  48. </row>
  49. <row>
  50. <entry><code>array getObjectClass()</code></entry>
  51. <entry>Returns the objectClass of the node.</entry>
  52. </row>
  53. <row>
  54. <entry><code>string toString()</code></entry>
  55. <entry>
  56. Returns the DN of the current node - proxies to
  57. <code>Zend_Ldap_Dn::getDnString()</code>.
  58. </entry>
  59. </row>
  60. <row>
  61. <entry><code>string __toString()</code></entry>
  62. <entry>
  63. Casts to string representation - proxies to
  64. <code>Zend_Ldap_Dn::toString()</code>.
  65. </entry>
  66. </row>
  67. <row>
  68. <entry>
  69. <code>array toArray(boolean
  70. $includeSystemAttributes)</code>
  71. </entry>
  72. <entry>
  73. Returns an array representation of the current node. If
  74. <code>$includeSystemAttributes</code> is <code>false</code>
  75. (defaults to <code>true</code>) the system specific attributes are
  76. stripped from the array. Unlike
  77. <code>Zend_Ldap_Node_RootDse::getAttributes()</code> the resulting
  78. array contains the DN with key <code>'dn'</code>.
  79. </entry>
  80. </row>
  81. <row>
  82. <entry>
  83. <code>string toJson(boolean
  84. $includeSystemAttributes)</code>
  85. </entry>
  86. <entry>
  87. Returns a <acronym>JSON</acronym> representation of the current node using
  88. <code>Zend_Ldap_Node_RootDse::toArray()</code>.
  89. </entry>
  90. </row>
  91. <row>
  92. <entry>
  93. <code>array getData(boolean
  94. $includeSystemAttributes)</code>
  95. </entry>
  96. <entry>
  97. Returns the node's attributes. The array contains all
  98. attributes in its internal format (no conversion).
  99. </entry>
  100. </row>
  101. <row>
  102. <entry>
  103. <code>boolean existsAttribute(string $name, boolean
  104. $emptyExists)</code>
  105. </entry>
  106. <entry>
  107. Checks whether a given attribute exists. If
  108. <code>$emptyExists</code> is <code>false</code> empty attributes
  109. (containing only array()) are treated as non-existent returning
  110. <code>false</code>. If <code>$emptyExists</code> is true empty
  111. attributes are treated as existent returning <code>true</code>. In
  112. this case teh method returns <code>false</code> only if the
  113. attribute name is missing in the key-collection.
  114. </entry>
  115. </row>
  116. <row>
  117. <entry>
  118. <code>boolean attributeHasValue(string $name, mixed|array
  119. $value)</code>
  120. </entry>
  121. <entry>
  122. Checks if the given value(s) exist in the attribute. The
  123. method returns <code>true</code> only if all values in
  124. <code>$value</code> are present in the attribute. Comparison is
  125. done strictly (respecting the data type).
  126. </entry>
  127. </row>
  128. <row>
  129. <entry><code>integer count()</code></entry>
  130. <entry>
  131. Returns the number of attributes in the node. Implements
  132. Countable.
  133. </entry>
  134. </row>
  135. <row>
  136. <entry>
  137. <code>mixed getAttribute(string $name, integer|null
  138. $index)</code>
  139. </entry>
  140. <entry>
  141. Gets a <acronym>LDAP</acronym> attribute. Data conversion is applied using
  142. <code>Zend_Ldap_Attribute::getAttribute()</code>.
  143. </entry>
  144. </row>
  145. <row>
  146. <entry>
  147. <code>array getAttributes(boolean
  148. $includeSystemAttributes)</code>
  149. </entry>
  150. <entry>
  151. Gets all attributes of node. If
  152. <code>$includeSystemAttributes</code> is <code>false</code>
  153. (defaults to <code>true</code>) the system specific attributes are
  154. stripped from the array.
  155. </entry>
  156. </row>
  157. <row>
  158. <entry>
  159. <code>array|integer getDateTimeAttribute(string $name,
  160. integer|null $index)</code>
  161. </entry>
  162. <entry>
  163. Gets a <acronym>LDAP</acronym> date/time attribute. Data conversion is applied
  164. using
  165. <code>Zend_Ldap_Attribute::getDateTimeAttribute()</code>.
  166. </entry>
  167. </row>
  168. <row>
  169. <entry>
  170. <code>Zend_Ldap_Node_RootDse reload(Zend_Ldap
  171. $ldap)</code>
  172. </entry>
  173. <entry>
  174. Reloads the current node's attributes from the given LDAP
  175. server.
  176. </entry>
  177. </row>
  178. <row>
  179. <entry>
  180. <emphasis><code>Zend_Ldap_Node_RootDse create(Zend_Ldap
  181. $ldap)</code> </emphasis>
  182. </entry>
  183. <entry>Factory method to create the RootDSE.</entry>
  184. </row>
  185. <row>
  186. <entry><code>array getNamingContexts()</code></entry>
  187. <entry>Gets the namingContexts.</entry>
  188. </row>
  189. <row>
  190. <entry><code>string|null getSubschemaSubentry()</code></entry>
  191. <entry>Gets the subschemaSubentry.</entry>
  192. </row>
  193. <row>
  194. <entry>
  195. <code>boolean supportsVersion(string|int|array
  196. $versions)</code>
  197. </entry>
  198. <entry>Determines if the <acronym>LDAP</acronym> version is supported.</entry>
  199. </row>
  200. <row>
  201. <entry>
  202. <code>boolean supportsSaslMechanism(string|array
  203. $mechlist)</code>
  204. </entry>
  205. <entry>Determines if the sasl mechanism is supported.</entry>
  206. </row>
  207. <row>
  208. <entry><code>integer getServerType()</code></entry>
  209. <entry>
  210. Gets the server type. Returns
  211. <variablelist>
  212. <varlistentry>
  213. <term>
  214. <code>Zend_Ldap_Node_RootDse::SERVER_TYPE_GENERIC</code></term>
  215. <listitem><para>for unknown <acronym>LDAP</acronym> servers</para></listitem>
  216. </varlistentry>
  217. <varlistentry>
  218. <term>
  219. <code>Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP</code></term>
  220. <listitem><para>for OpenLDAP servers</para></listitem>
  221. </varlistentry>
  222. <varlistentry>
  223. <term>
  224. <code>Zend_Ldap_Node_RootDse::SERVER_TYPE_ACTIVEDIRECTORY</code></term>
  225. <listitem><para>for Microsoft ActiveDirectory servers</para></listitem>
  226. </varlistentry>
  227. <varlistentry>
  228. <term>
  229. <code>Zend_Ldap_Node_RootDse::SERVER_TYPE_EDIRECTORY</code></term>
  230. <listitem><para>For Novell eDirectory servers</para></listitem>
  231. </varlistentry>
  232. </variablelist>
  233. </entry>
  234. </row>
  235. <row>
  236. <entry><code>Zend_Ldap_Dn getSchemaDn()</code></entry>
  237. <entry>Returns the schema DN.</entry>
  238. </row>
  239. </tbody>
  240. </tgroup>
  241. </table>
  242. <sect4 id="zend.ldap.api.reference.zend-ldap-node-rootdse.openldap">
  243. <title>OpenLDAP</title>
  244. <para>
  245. Additionally the common methods above apply to instances of
  246. <code>Zend_Ldap_Node_RootDse_OpenLdap</code>.
  247. </para>
  248. <note>
  249. <para>
  250. Refer to
  251. <ulink url="http://www.zytrax.com/books/ldap/ch3/#operational">LDAP
  252. Operational Attributes and Objects</ulink>for information on the attributes
  253. of OpenLDAP RootDSE.
  254. </para>
  255. </note>
  256. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.openldap.table">
  257. <title>Zend_Ldap_Node_RootDse_OpenLdap API</title>
  258. <tgroup cols="2">
  259. <thead>
  260. <row>
  261. <entry>Method</entry>
  262. <entry>Description</entry>
  263. </row>
  264. </thead>
  265. <tbody>
  266. <row>
  267. <entry><code>integer getServerType()</code></entry>
  268. <entry>
  269. Gets the server type. Returns
  270. <code>Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP</code>
  271. </entry>
  272. </row>
  273. <row>
  274. <entry><code>string|null getConfigContext()</code></entry>
  275. <entry>Gets the configContext.</entry>
  276. </row>
  277. <row>
  278. <entry><code>string|null getMonitorContext()</code></entry>
  279. <entry>Gets the monitorContext.</entry>
  280. </row>
  281. <row>
  282. <entry>
  283. <code>boolean supportsControl(string|array
  284. $oids)</code>
  285. </entry>
  286. <entry>Determines if the control is supported.</entry>
  287. </row>
  288. <row>
  289. <entry>
  290. <code>boolean supportsExtension(string|array
  291. $oids)</code>
  292. </entry>
  293. <entry>Determines if the extension is supported.</entry>
  294. </row>
  295. <row>
  296. <entry>
  297. <code>boolean supportsFeature(string|array
  298. $oids)</code>
  299. </entry>
  300. <entry>Determines if the feature is supported.</entry>
  301. </row>
  302. </tbody>
  303. </tgroup>
  304. </table>
  305. </sect4>
  306. <sect4 id="zend.ldap.api.reference.zend-ldap-node-rootdse.activedirectory">
  307. <title>ActiveDirectory</title>
  308. <para>
  309. Additionally the common methods above apply to instances of
  310. <code>Zend_Ldap_Node_RootDse_ActiveDirectory</code>.
  311. </para>
  312. <note>
  313. <para>
  314. Refer to
  315. <ulink url="http://msdn.microsoft.com/en-us/library/ms684291(VS.85).aspx">
  316. RootDSE</ulink>for information on the attributes of Microsoft
  317. ActiveDirectory RootDSE.
  318. </para>
  319. </note>
  320. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.activedirectory.table">
  321. <title>Zend_Ldap_Node_RootDse_ActiveDirectory API</title>
  322. <tgroup cols="2">
  323. <thead>
  324. <row>
  325. <entry>Method</entry>
  326. <entry>Description</entry>
  327. </row>
  328. </thead>
  329. <tbody>
  330. <row>
  331. <entry><code>integer getServerType()</code></entry>
  332. <entry>
  333. Gets the server type. Returns
  334. <code>Zend_Ldap_Node_RootDse::SERVER_TYPE_ACTIVEDIRECTORY</code>
  335. </entry>
  336. </row>
  337. <row>
  338. <entry>
  339. <code>string|null
  340. getConfigurationNamingContext()</code>
  341. </entry>
  342. <entry>Gets the configurationNamingContext.</entry>
  343. </row>
  344. <row>
  345. <entry><code>string|null getCurrentTime()</code></entry>
  346. <entry>Gets the currentTime.</entry>
  347. </row>
  348. <row>
  349. <entry>
  350. <code>string|null
  351. getDefaultNamingContext()</code>
  352. </entry>
  353. <entry>Gets the defaultNamingContext.</entry>
  354. </row>
  355. <row>
  356. <entry><code>string|null getDnsHostName()</code></entry>
  357. <entry>Gets the dnsHostName.</entry>
  358. </row>
  359. <row>
  360. <entry>
  361. <code>string|null
  362. getDomainControllerFunctionality()</code>
  363. </entry>
  364. <entry>Gets the domainControllerFunctionality.</entry>
  365. </row>
  366. <row>
  367. <entry>
  368. <code>string|null
  369. getDomainFunctionality()</code>
  370. </entry>
  371. <entry>Gets the domainFunctionality.</entry>
  372. </row>
  373. <row>
  374. <entry><code>string|null getDsServiceName()</code></entry>
  375. <entry>Gets the dsServiceName.</entry>
  376. </row>
  377. <row>
  378. <entry>
  379. <code>string|null
  380. getForestFunctionality()</code>
  381. </entry>
  382. <entry>Gets the forestFunctionality.</entry>
  383. </row>
  384. <row>
  385. <entry>
  386. <code>string|null
  387. getHighestCommittedUSN()</code>
  388. </entry>
  389. <entry>Gets the highestCommittedUSN.</entry>
  390. </row>
  391. <row>
  392. <entry>
  393. <code>string|null
  394. getIsGlobalCatalogReady()</code>
  395. </entry>
  396. <entry>Gets the isGlobalCatalogReady.</entry>
  397. </row>
  398. <row>
  399. <entry><code>string|null getIsSynchronized()</code></entry>
  400. <entry>Gets the isSynchronized.</entry>
  401. </row>
  402. <row>
  403. <entry><code>string|null getLdapServiceName()</code></entry>
  404. <entry>Gets the ldapServiceName.</entry>
  405. </row>
  406. <row>
  407. <entry>
  408. <code>string|null
  409. getRootDomainNamingContext()</code>
  410. </entry>
  411. <entry>Gets the rootDomainNamingContext.</entry>
  412. </row>
  413. <row>
  414. <entry>
  415. <code>string|null
  416. getSchemaNamingContext()</code>
  417. </entry>
  418. <entry>Gets the schemaNamingContext.</entry>
  419. </row>
  420. <row>
  421. <entry><code>string|null getServerName()</code></entry>
  422. <entry>Gets the serverName.</entry>
  423. </row>
  424. <row>
  425. <entry>
  426. <code>boolean supportsCapability(string|array
  427. $oids)</code>
  428. </entry>
  429. <entry>Determines if the capability is supported.</entry>
  430. </row>
  431. <row>
  432. <entry>
  433. <code>boolean supportsControl(string|array
  434. $oids)</code>
  435. </entry>
  436. <entry>Determines if the control is supported.</entry>
  437. </row>
  438. <row>
  439. <entry>
  440. <code>boolean supportsPolicy(string|array
  441. $policies)</code>
  442. </entry>
  443. <entry>Determines if the version is supported.</entry>
  444. </row>
  445. </tbody>
  446. </tgroup>
  447. </table>
  448. </sect4>
  449. <sect4 id="zend.ldap.api.reference.zend-ldap-node-rootdse.edirectory">
  450. <title>eDirectory</title>
  451. <para>
  452. Additionally the common methods above apply to instances of
  453. <code>Zend_Ldap_Node_RootDse_eDirectory</code>.
  454. </para>
  455. <note>
  456. <para>
  457. Refer to
  458. <ulink url="http://www.novell.com/documentation/edir88/edir88/index.html?page=/documentation/edir88/edir88/data/ah59jqq.html">
  459. Getting Information about the <acronym>LDAP</acronym> Server</ulink>for information on the
  460. attributes of Novell eDirectory RootDSE.
  461. </para>
  462. </note>
  463. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.edirectory.table">
  464. <title>Zend_Ldap_Node_RootDse_eDirectory API</title>
  465. <tgroup cols="2">
  466. <thead>
  467. <row>
  468. <entry>Method</entry>
  469. <entry>Description</entry>
  470. </row>
  471. </thead>
  472. <tbody>
  473. <row>
  474. <entry><code>integer getServerType()</code></entry>
  475. <entry>
  476. Gets the server type. Returns
  477. <code>Zend_Ldap_Node_RootDse::SERVER_TYPE_EDIRECTORY</code>
  478. </entry>
  479. </row>
  480. <row>
  481. <entry>
  482. <code>boolean supportsExtension(string|array
  483. $oids)</code>
  484. </entry>
  485. <entry>Determines if the extension is supported.</entry>
  486. </row>
  487. <row>
  488. <entry><code>string|null getVendorName()</code></entry>
  489. <entry>Gets the vendorName.</entry>
  490. </row>
  491. <row>
  492. <entry><code>string|null getVendorVersion()</code></entry>
  493. <entry>Gets the vendorVersion.</entry>
  494. </row>
  495. <row>
  496. <entry><code>string|null getDsaName()</code></entry>
  497. <entry>Gets the dsaName.</entry>
  498. </row>
  499. <row>
  500. <entry><code>string|null getStatisticsErrors()</code></entry>
  501. <entry>Gets the server statistics "errors".</entry>
  502. </row>
  503. <row>
  504. <entry>
  505. <code>string|null
  506. getStatisticsSecurityErrors()</code>
  507. </entry>
  508. <entry>Gets the server statistics "securityErrors".</entry>
  509. </row>
  510. <row>
  511. <entry>
  512. <code>string|null
  513. getStatisticsChainings()</code>
  514. </entry>
  515. <entry>Gets the server statistics "chainings".</entry>
  516. </row>
  517. <row>
  518. <entry>
  519. <code>string|null
  520. getStatisticsReferralsReturned()</code>
  521. </entry>
  522. <entry>Gets the server statistics "referralsReturned".</entry>
  523. </row>
  524. <row>
  525. <entry>
  526. <code>string|null
  527. getStatisticsExtendedOps()</code>
  528. </entry>
  529. <entry>Gets the server statistics "extendedOps".</entry>
  530. </row>
  531. <row>
  532. <entry>
  533. <code>string|null
  534. getStatisticsAbandonOps()</code>
  535. </entry>
  536. <entry>Gets the server statistics "abandonOps".</entry>
  537. </row>
  538. <row>
  539. <entry>
  540. <code>string|null
  541. getStatisticsWholeSubtreeSearchOps()</code>
  542. </entry>
  543. <entry>
  544. Gets the server statistics
  545. "wholeSubtreeSearchOps".
  546. </entry>
  547. </row>
  548. </tbody>
  549. </tgroup>
  550. </table>
  551. </sect4>
  552. </sect3>