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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- EN-Revision: 17230 -->
  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. <classname>Zend_Ldap_Node_RootDse</classname> includes the magic propery accessors
  9. <methodname>__get()</methodname> and <methodname>__isset()</methodname> to access the attributes by their
  10. name. They proxy to <methodname>Zend_Ldap_Node_RootDse::getAttribute()</methodname> and
  11. <methodname>Zend_Ldap_Node_RootDse::existsAttribute()</methodname> respectively.
  12. <methodname>__set()</methodname> and <methodname>__unset()</methodname> 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. <methodname>offsetSet()</methodname> and
  16. <methodname>offsetUnset()</methodname> 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. <methodname>Zend_Ldap_Dn::getDnString()</methodname>.
  58. </entry>
  59. </row>
  60. <row>
  61. <entry><code>string __toString()</code></entry>
  62. <entry>
  63. Casts to string representation - proxies to
  64. <methodname>Zend_Ldap_Dn::toString()</methodname>.
  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. <varname>$includeSystemAttributes</varname> is <constant>FALSE</constant>
  75. (defaults to <constant>TRUE</constant>) the system specific attributes are
  76. stripped from the array. Unlike
  77. <methodname>Zend_Ldap_Node_RootDse::getAttributes()</methodname> 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. <methodname>Zend_Ldap_Node_RootDse::toArray()</methodname>.
  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. <varname>$emptyExists</varname> is <constant>FALSE</constant> empty attributes
  109. (containing only array()) are treated as non-existent returning
  110. <constant>FALSE</constant>. If <varname>$emptyExists</varname> is true empty
  111. attributes are treated as existent returning <constant>TRUE</constant>. In
  112. this case teh method returns <constant>FALSE</constant> 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 <constant>TRUE</constant> only if all values in
  124. <varname>$value</varname> 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. <methodname>Zend_Ldap_Attribute::getAttribute()</methodname>.
  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. <varname>$includeSystemAttributes</varname> is <constant>FALSE</constant>
  153. (defaults to <constant>TRUE</constant>) 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. <methodname>Zend_Ldap_Attribute::getDateTimeAttribute()</methodname>.
  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 <acronym>LDAP</acronym>
  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. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_GENERIC</constant></term>
  215. <listitem>
  216. <para>for unknown <acronym>LDAP</acronym> servers</para>
  217. </listitem>
  218. </varlistentry>
  219. <varlistentry>
  220. <term>
  221. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP</constant></term>
  222. <listitem><para>for OpenLDAP servers</para></listitem>
  223. </varlistentry>
  224. <varlistentry>
  225. <term>
  226. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_ACTIVEDIRECTORY</constant></term>
  227. <listitem><para>for Microsoft ActiveDirectory servers</para></listitem>
  228. </varlistentry>
  229. <varlistentry>
  230. <term>
  231. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_EDIRECTORY</constant></term>
  232. <listitem><para>For Novell eDirectory servers</para></listitem>
  233. </varlistentry>
  234. </variablelist>
  235. </entry>
  236. </row>
  237. <row>
  238. <entry><methodname>Zend_Ldap_Dn getSchemaDn()</methodname></entry>
  239. <entry>Returns the schema DN.</entry>
  240. </row>
  241. </tbody>
  242. </tgroup>
  243. </table>
  244. <sect4 id="zend.ldap.api.reference.zend-ldap-node-rootdse.openldap">
  245. <title>OpenLDAP</title>
  246. <para>
  247. Additionally the common methods above apply to instances of
  248. <classname>Zend_Ldap_Node_RootDse_OpenLdap</classname>.
  249. </para>
  250. <note>
  251. <para>
  252. Refer to
  253. <ulink url="http://www.zytrax.com/books/ldap/ch3/#operational">LDAP
  254. Operational Attributes and Objects</ulink>for information on the attributes
  255. of OpenLDAP RootDSE.
  256. </para>
  257. </note>
  258. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.openldap.table">
  259. <title>Zend_Ldap_Node_RootDse_OpenLdap API</title>
  260. <tgroup cols="2">
  261. <thead>
  262. <row>
  263. <entry>Method</entry>
  264. <entry>Description</entry>
  265. </row>
  266. </thead>
  267. <tbody>
  268. <row>
  269. <entry><code>integer getServerType()</code></entry>
  270. <entry>
  271. Gets the server type. Returns
  272. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP</constant>
  273. </entry>
  274. </row>
  275. <row>
  276. <entry><code>string|null getConfigContext()</code></entry>
  277. <entry>Gets the configContext.</entry>
  278. </row>
  279. <row>
  280. <entry><code>string|null getMonitorContext()</code></entry>
  281. <entry>Gets the monitorContext.</entry>
  282. </row>
  283. <row>
  284. <entry>
  285. <code>boolean supportsControl(string|array
  286. $oids)</code>
  287. </entry>
  288. <entry>Determines if the control is supported.</entry>
  289. </row>
  290. <row>
  291. <entry>
  292. <code>boolean supportsExtension(string|array
  293. $oids)</code>
  294. </entry>
  295. <entry>Determines if the extension is supported.</entry>
  296. </row>
  297. <row>
  298. <entry>
  299. <code>boolean supportsFeature(string|array
  300. $oids)</code>
  301. </entry>
  302. <entry>Determines if the feature is supported.</entry>
  303. </row>
  304. </tbody>
  305. </tgroup>
  306. </table>
  307. </sect4>
  308. <sect4 id="zend.ldap.api.reference.zend-ldap-node-rootdse.activedirectory">
  309. <title>ActiveDirectory</title>
  310. <para>
  311. Additionally the common methods above apply to instances of
  312. <classname>Zend_Ldap_Node_RootDse_ActiveDirectory</classname>.
  313. </para>
  314. <note>
  315. <para>
  316. Refer to
  317. <ulink url="http://msdn.microsoft.com/en-us/library/ms684291(VS.85).aspx">
  318. RootDSE</ulink>for information on the attributes of Microsoft
  319. ActiveDirectory RootDSE.
  320. </para>
  321. </note>
  322. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.activedirectory.table">
  323. <title>Zend_Ldap_Node_RootDse_ActiveDirectory API</title>
  324. <tgroup cols="2">
  325. <thead>
  326. <row>
  327. <entry>Method</entry>
  328. <entry>Description</entry>
  329. </row>
  330. </thead>
  331. <tbody>
  332. <row>
  333. <entry><code>integer getServerType()</code></entry>
  334. <entry>
  335. Gets the server type. Returns
  336. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_ACTIVEDIRECTORY</constant>
  337. </entry>
  338. </row>
  339. <row>
  340. <entry>
  341. <code>string|null
  342. getConfigurationNamingContext()</code>
  343. </entry>
  344. <entry>Gets the configurationNamingContext.</entry>
  345. </row>
  346. <row>
  347. <entry><code>string|null getCurrentTime()</code></entry>
  348. <entry>Gets the currentTime.</entry>
  349. </row>
  350. <row>
  351. <entry>
  352. <code>string|null
  353. getDefaultNamingContext()</code>
  354. </entry>
  355. <entry>Gets the defaultNamingContext.</entry>
  356. </row>
  357. <row>
  358. <entry><code>string|null getDnsHostName()</code></entry>
  359. <entry>Gets the dnsHostName.</entry>
  360. </row>
  361. <row>
  362. <entry>
  363. <code>string|null
  364. getDomainControllerFunctionality()</code>
  365. </entry>
  366. <entry>Gets the domainControllerFunctionality.</entry>
  367. </row>
  368. <row>
  369. <entry>
  370. <code>string|null
  371. getDomainFunctionality()</code>
  372. </entry>
  373. <entry>Gets the domainFunctionality.</entry>
  374. </row>
  375. <row>
  376. <entry><code>string|null getDsServiceName()</code></entry>
  377. <entry>Gets the dsServiceName.</entry>
  378. </row>
  379. <row>
  380. <entry>
  381. <code>string|null
  382. getForestFunctionality()</code>
  383. </entry>
  384. <entry>Gets the forestFunctionality.</entry>
  385. </row>
  386. <row>
  387. <entry>
  388. <code>string|null
  389. getHighestCommittedUSN()</code>
  390. </entry>
  391. <entry>Gets the highestCommittedUSN.</entry>
  392. </row>
  393. <row>
  394. <entry>
  395. <code>string|null
  396. getIsGlobalCatalogReady()</code>
  397. </entry>
  398. <entry>Gets the isGlobalCatalogReady.</entry>
  399. </row>
  400. <row>
  401. <entry><code>string|null getIsSynchronized()</code></entry>
  402. <entry>Gets the isSynchronized.</entry>
  403. </row>
  404. <row>
  405. <entry><code>string|null getLdapServiceName()</code></entry>
  406. <entry>Gets the ldapServiceName.</entry>
  407. </row>
  408. <row>
  409. <entry>
  410. <code>string|null
  411. getRootDomainNamingContext()</code>
  412. </entry>
  413. <entry>Gets the rootDomainNamingContext.</entry>
  414. </row>
  415. <row>
  416. <entry>
  417. <code>string|null
  418. getSchemaNamingContext()</code>
  419. </entry>
  420. <entry>Gets the schemaNamingContext.</entry>
  421. </row>
  422. <row>
  423. <entry><code>string|null getServerName()</code></entry>
  424. <entry>Gets the serverName.</entry>
  425. </row>
  426. <row>
  427. <entry>
  428. <code>boolean supportsCapability(string|array
  429. $oids)</code>
  430. </entry>
  431. <entry>Determines if the capability is supported.</entry>
  432. </row>
  433. <row>
  434. <entry>
  435. <code>boolean supportsControl(string|array
  436. $oids)</code>
  437. </entry>
  438. <entry>Determines if the control is supported.</entry>
  439. </row>
  440. <row>
  441. <entry>
  442. <code>boolean supportsPolicy(string|array
  443. $policies)</code>
  444. </entry>
  445. <entry>Determines if the version is supported.</entry>
  446. </row>
  447. </tbody>
  448. </tgroup>
  449. </table>
  450. </sect4>
  451. <sect4 id="zend.ldap.api.reference.zend-ldap-node-rootdse.edirectory">
  452. <title>eDirectory</title>
  453. <para>
  454. Additionally the common methods above apply to instances of
  455. <code>Zend_Ldap_Node_RootDse_eDirectory</code>.
  456. </para>
  457. <note>
  458. <para>
  459. Refer to
  460. <ulink url="http://www.novell.com/documentation/edir88/edir88/index.html?page=/documentation/edir88/edir88/data/ah59jqq.html">
  461. Getting Information about the <acronym>LDAP</acronym> Server</ulink>for information on the
  462. attributes of Novell eDirectory RootDSE.
  463. </para>
  464. </note>
  465. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.edirectory.table">
  466. <title>Zend_Ldap_Node_RootDse_eDirectory API</title>
  467. <tgroup cols="2">
  468. <thead>
  469. <row>
  470. <entry>Method</entry>
  471. <entry>Description</entry>
  472. </row>
  473. </thead>
  474. <tbody>
  475. <row>
  476. <entry><code>integer getServerType()</code></entry>
  477. <entry>
  478. Gets the server type. Returns
  479. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_EDIRECTORY</constant>
  480. </entry>
  481. </row>
  482. <row>
  483. <entry>
  484. <code>boolean supportsExtension(string|array
  485. $oids)</code>
  486. </entry>
  487. <entry>Determines if the extension is supported.</entry>
  488. </row>
  489. <row>
  490. <entry><code>string|null getVendorName()</code></entry>
  491. <entry>Gets the vendorName.</entry>
  492. </row>
  493. <row>
  494. <entry><code>string|null getVendorVersion()</code></entry>
  495. <entry>Gets the vendorVersion.</entry>
  496. </row>
  497. <row>
  498. <entry><code>string|null getDsaName()</code></entry>
  499. <entry>Gets the dsaName.</entry>
  500. </row>
  501. <row>
  502. <entry><code>string|null getStatisticsErrors()</code></entry>
  503. <entry>Gets the server statistics "errors".</entry>
  504. </row>
  505. <row>
  506. <entry>
  507. <code>string|null
  508. getStatisticsSecurityErrors()</code>
  509. </entry>
  510. <entry>Gets the server statistics "securityErrors".</entry>
  511. </row>
  512. <row>
  513. <entry>
  514. <code>string|null
  515. getStatisticsChainings()</code>
  516. </entry>
  517. <entry>Gets the server statistics "chainings".</entry>
  518. </row>
  519. <row>
  520. <entry>
  521. <code>string|null
  522. getStatisticsReferralsReturned()</code>
  523. </entry>
  524. <entry>Gets the server statistics "referralsReturned".</entry>
  525. </row>
  526. <row>
  527. <entry>
  528. <code>string|null
  529. getStatisticsExtendedOps()</code>
  530. </entry>
  531. <entry>Gets the server statistics "extendedOps".</entry>
  532. </row>
  533. <row>
  534. <entry>
  535. <code>string|null
  536. getStatisticsAbandonOps()</code>
  537. </entry>
  538. <entry>Gets the server statistics "abandonOps".</entry>
  539. </row>
  540. <row>
  541. <entry>
  542. <code>string|null
  543. getStatisticsWholeSubtreeSearchOps()</code>
  544. </entry>
  545. <entry>
  546. Gets the server statistics
  547. "wholeSubtreeSearchOps".
  548. </entry>
  549. </row>
  550. </tbody>
  551. </tgroup>
  552. </table>
  553. </sect4>
  554. </sect3>