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

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