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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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 property accessors
  8. <methodname>__get()</methodname> and <methodname>__isset()</methodname> to access the
  9. attributes by their name. They proxy to
  10. <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
  13. but they throw a <code>BadMethodCallException</code> as modifications are not allowed on
  14. RootDSE 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
  17. ro 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><code>array toArray(boolean $includeSystemAttributes)</code></entry>
  69. <entry>
  70. Returns an array representation of the current node. If
  71. <varname>$includeSystemAttributes</varname> is <constant>FALSE</constant>
  72. (defaults to <constant>TRUE</constant>) the system specific attributes are
  73. stripped from the array. Unlike
  74. <methodname>Zend_Ldap_Node_RootDse::getAttributes()</methodname> the
  75. resulting array contains the DN with key <code>'dn'</code>.
  76. </entry>
  77. </row>
  78. <row>
  79. <entry><code>string toJson(boolean $includeSystemAttributes)</code></entry>
  80. <entry>
  81. Returns a <acronym>JSON</acronym> representation of the current node using
  82. <methodname>Zend_Ldap_Node_RootDse::toArray()</methodname>.
  83. </entry>
  84. </row>
  85. <row>
  86. <entry><code>array getData(boolean $includeSystemAttributes)</code></entry>
  87. <entry>
  88. Returns the node's attributes. The array contains all
  89. attributes in its internal format (no conversion).
  90. </entry>
  91. </row>
  92. <row>
  93. <entry>
  94. <code>boolean existsAttribute(string $name, boolean $emptyExists)</code>
  95. </entry>
  96. <entry>
  97. Checks whether a given attribute exists. If
  98. <varname>$emptyExists</varname> is <constant>FALSE</constant>, empty
  99. attributes (containing only array()) are treated as non-existent returning
  100. <constant>FALSE</constant>. If <varname>$emptyExists</varname> is
  101. <constant>TRUE</constant>, empty attributes are treated as existent
  102. returning <constant>TRUE</constant>. In this case the method returns
  103. <constant>FALSE</constant> only if the attribute name is missing in the
  104. key-collection.
  105. </entry>
  106. </row>
  107. <row>
  108. <entry>
  109. <code>boolean attributeHasValue(string $name, mixed|array $value)</code>
  110. </entry>
  111. <entry>
  112. Checks if the given value(s) exist in the attribute. The
  113. method returns <constant>TRUE</constant> only if all values in
  114. <varname>$value</varname> are present in the attribute. Comparison is
  115. done strictly (respecting the data type).
  116. </entry>
  117. </row>
  118. <row>
  119. <entry><code>integer count()</code></entry>
  120. <entry>
  121. Returns the number of attributes in the node. Implements Countable.
  122. </entry>
  123. </row>
  124. <row>
  125. <entry>
  126. <code>mixed getAttribute(string $name, integer|null $index)</code>
  127. </entry>
  128. <entry>
  129. Gets a <acronym>LDAP</acronym> attribute. Data conversion is applied using
  130. <methodname>Zend_Ldap_Attribute::getAttribute()</methodname>.
  131. </entry>
  132. </row>
  133. <row>
  134. <entry>
  135. <code>array getAttributes(boolean $includeSystemAttributes)</code>
  136. </entry>
  137. <entry>
  138. Gets all attributes of node. If
  139. <varname>$includeSystemAttributes</varname> is <constant>FALSE</constant>
  140. (defaults to <constant>TRUE</constant>) the system specific attributes are
  141. stripped from the array.
  142. </entry>
  143. </row>
  144. <row>
  145. <entry>
  146. <code>array|integer getDateTimeAttribute(string $name,
  147. integer|null $index)</code>
  148. </entry>
  149. <entry>
  150. Gets a <acronym>LDAP</acronym> date/time attribute. Data conversion is
  151. applied using
  152. <methodname>Zend_Ldap_Attribute::getDateTimeAttribute()</methodname>.
  153. </entry>
  154. </row>
  155. <row>
  156. <entry><code>Zend_Ldap_Node_RootDse reload(Zend_Ldap $ldap)</code></entry>
  157. <entry>
  158. Reloads the current node's attributes from the given <acronym>LDAP</acronym>
  159. server.
  160. </entry>
  161. </row>
  162. <row>
  163. <entry>
  164. <emphasis><code>Zend_Ldap_Node_RootDse create(Zend_Ldap
  165. $ldap)</code></emphasis>
  166. </entry>
  167. <entry>Factory method to create the RootDSE.</entry>
  168. </row>
  169. <row>
  170. <entry><code>array getNamingContexts()</code></entry>
  171. <entry>Gets the namingContexts.</entry>
  172. </row>
  173. <row>
  174. <entry><code>string|null getSubschemaSubentry()</code></entry>
  175. <entry>Gets the subschemaSubentry.</entry>
  176. </row>
  177. <row>
  178. <entry><code>boolean supportsVersion(string|int|array $versions)</code></entry>
  179. <entry>Determines if the <acronym>LDAP</acronym> version is supported.</entry>
  180. </row>
  181. <row>
  182. <entry>
  183. <code>boolean supportsSaslMechanism(string|array $mechlist)</code>
  184. </entry>
  185. <entry>Determines if the sasl mechanism is supported.</entry>
  186. </row>
  187. <row>
  188. <entry><code>integer getServerType()</code></entry>
  189. <entry>
  190. Gets the server type. Returns
  191. <variablelist>
  192. <varlistentry>
  193. <term>
  194. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_GENERIC</constant>
  195. </term>
  196. <listitem>
  197. <para>for unknown <acronym>LDAP</acronym> servers</para>
  198. </listitem>
  199. </varlistentry>
  200. <varlistentry>
  201. <term>
  202. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP</constant>
  203. </term>
  204. <listitem><para>for OpenLDAP servers</para></listitem>
  205. </varlistentry>
  206. <varlistentry>
  207. <term>
  208. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_ACTIVEDIRECTORY</constant>
  209. </term>
  210. <listitem>
  211. <para>for Microsoft ActiveDirectory servers</para>
  212. </listitem>
  213. </varlistentry>
  214. <varlistentry>
  215. <term>
  216. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_EDIRECTORY</constant>
  217. </term>
  218. <listitem><para>For Novell eDirectory servers</para></listitem>
  219. </varlistentry>
  220. </variablelist>
  221. </entry>
  222. </row>
  223. <row>
  224. <entry><code>Zend_Ldap_Dn getSchemaDn()</code></entry>
  225. <entry>Returns the schema DN.</entry>
  226. </row>
  227. </tbody>
  228. </tgroup>
  229. </table>
  230. <sect4 id="zend.ldap.api.reference.zend-ldap-node-rootdse.openldap">
  231. <title>OpenLDAP</title>
  232. <para>
  233. Additionally the common methods above apply to instances of
  234. <classname>Zend_Ldap_Node_RootDse_OpenLdap</classname>.
  235. </para>
  236. <note>
  237. <para>
  238. Refer to
  239. <ulink url="http://www.zytrax.com/books/ldap/ch3/#operational">LDAP
  240. Operational Attributes and Objects</ulink>for information on the attributes
  241. of OpenLDAP RootDSE.
  242. </para>
  243. </note>
  244. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.openldap.table">
  245. <title>Zend_Ldap_Node_RootDse_OpenLdap API</title>
  246. <tgroup cols="2">
  247. <thead>
  248. <row>
  249. <entry>Method</entry>
  250. <entry>Description</entry>
  251. </row>
  252. </thead>
  253. <tbody>
  254. <row>
  255. <entry><code>integer getServerType()</code></entry>
  256. <entry>
  257. Gets the server type. Returns
  258. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP</constant>
  259. </entry>
  260. </row>
  261. <row>
  262. <entry><code>string|null getConfigContext()</code></entry>
  263. <entry>Gets the configContext.</entry>
  264. </row>
  265. <row>
  266. <entry><code>string|null getMonitorContext()</code></entry>
  267. <entry>Gets the monitorContext.</entry>
  268. </row>
  269. <row>
  270. <entry><code>boolean supportsControl(string|array $oids)</code></entry>
  271. <entry>Determines if the control is supported.</entry>
  272. </row>
  273. <row>
  274. <entry><code>boolean supportsExtension(string|array $oids)</code></entry>
  275. <entry>Determines if the extension is supported.</entry>
  276. </row>
  277. <row>
  278. <entry><code>boolean supportsFeature(string|array $oids)</code></entry>
  279. <entry>Determines if the feature is supported.</entry>
  280. </row>
  281. </tbody>
  282. </tgroup>
  283. </table>
  284. </sect4>
  285. <sect4 id="zend.ldap.api.reference.zend-ldap-node-rootdse.activedirectory">
  286. <title>ActiveDirectory</title>
  287. <para>
  288. Additionally the common methods above apply to instances of
  289. <classname>Zend_Ldap_Node_RootDse_ActiveDirectory</classname>.
  290. </para>
  291. <note>
  292. <para>
  293. Refer to
  294. <ulink url="http://msdn.microsoft.com/en-us/library/ms684291(VS.85).aspx">
  295. RootDSE</ulink>for information on the attributes of Microsoft
  296. ActiveDirectory RootDSE.
  297. </para>
  298. </note>
  299. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.activedirectory.table">
  300. <title>Zend_Ldap_Node_RootDse_ActiveDirectory API</title>
  301. <tgroup cols="2">
  302. <thead>
  303. <row>
  304. <entry>Method</entry>
  305. <entry>Description</entry>
  306. </row>
  307. </thead>
  308. <tbody>
  309. <row>
  310. <entry><code>integer getServerType()</code></entry>
  311. <entry>
  312. Gets the server type. Returns
  313. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_ACTIVEDIRECTORY</constant>
  314. </entry>
  315. </row>
  316. <row>
  317. <entry><code>string|null getConfigurationNamingContext()</code></entry>
  318. <entry>Gets the configurationNamingContext.</entry>
  319. </row>
  320. <row>
  321. <entry><code>string|null getCurrentTime()</code></entry>
  322. <entry>Gets the currentTime.</entry>
  323. </row>
  324. <row>
  325. <entry><code>string|null getDefaultNamingContext()</code></entry>
  326. <entry>Gets the defaultNamingContext.</entry>
  327. </row>
  328. <row>
  329. <entry><code>string|null getDnsHostName()</code></entry>
  330. <entry>Gets the dnsHostName.</entry>
  331. </row>
  332. <row>
  333. <entry><code>string|null getDomainControllerFunctionality()</code></entry>
  334. <entry>Gets the domainControllerFunctionality.</entry>
  335. </row>
  336. <row>
  337. <entry><code>string|null getDomainFunctionality()</code></entry>
  338. <entry>Gets the domainFunctionality.</entry>
  339. </row>
  340. <row>
  341. <entry><code>string|null getDsServiceName()</code></entry>
  342. <entry>Gets the dsServiceName.</entry>
  343. </row>
  344. <row>
  345. <entry><code>string|null getForestFunctionality()</code></entry>
  346. <entry>Gets the forestFunctionality.</entry>
  347. </row>
  348. <row>
  349. <entry><code>string|null getHighestCommittedUSN()</code></entry>
  350. <entry>Gets the highestCommittedUSN.</entry>
  351. </row>
  352. <row>
  353. <entry><code>string|null getIsGlobalCatalogReady()</code></entry>
  354. <entry>Gets the isGlobalCatalogReady.</entry>
  355. </row>
  356. <row>
  357. <entry><code>string|null getIsSynchronized()</code></entry>
  358. <entry>Gets the isSynchronized.</entry>
  359. </row>
  360. <row>
  361. <entry><code>string|null getLdapServiceName()</code></entry>
  362. <entry>Gets the ldapServiceName.</entry>
  363. </row>
  364. <row>
  365. <entry><code>string|null getRootDomainNamingContext()</code></entry>
  366. <entry>Gets the rootDomainNamingContext.</entry>
  367. </row>
  368. <row>
  369. <entry><code>string|null getSchemaNamingContext()</code></entry>
  370. <entry>Gets the schemaNamingContext.</entry>
  371. </row>
  372. <row>
  373. <entry><code>string|null getServerName()</code></entry>
  374. <entry>Gets the serverName.</entry>
  375. </row>
  376. <row>
  377. <entry><code>boolean supportsCapability(string|array $oids)</code></entry>
  378. <entry>Determines if the capability is supported.</entry>
  379. </row>
  380. <row>
  381. <entry><code>boolean supportsControl(string|array $oids)</code></entry>
  382. <entry>Determines if the control is supported.</entry>
  383. </row>
  384. <row>
  385. <entry><code>boolean supportsPolicy(string|array $policies)</code></entry>
  386. <entry>Determines if the version is supported.</entry>
  387. </row>
  388. </tbody>
  389. </tgroup>
  390. </table>
  391. </sect4>
  392. <sect4 id="zend.ldap.api.reference.zend-ldap-node-rootdse.edirectory">
  393. <title>eDirectory</title>
  394. <para>
  395. Additionally the common methods above apply to instances of
  396. <code>Zend_Ldap_Node_RootDse_eDirectory</code>.
  397. </para>
  398. <note>
  399. <para>
  400. Refer to <ulink
  401. url="http://www.novell.com/documentation/edir88/edir88/index.html?page=/documentation/edir88/edir88/data/ah59jqq.html">Getting
  402. Information about the <acronym>LDAP</acronym> Server</ulink>for information on
  403. the attributes of Novell eDirectory RootDSE.
  404. </para>
  405. </note>
  406. <table id="zend.ldap.api.reference.zend-ldap-node-rootdse.edirectory.table">
  407. <title>Zend_Ldap_Node_RootDse_eDirectory API</title>
  408. <tgroup cols="2">
  409. <thead>
  410. <row>
  411. <entry>Method</entry>
  412. <entry>Description</entry>
  413. </row>
  414. </thead>
  415. <tbody>
  416. <row>
  417. <entry><code>integer getServerType()</code></entry>
  418. <entry>
  419. Gets the server type. Returns
  420. <constant>Zend_Ldap_Node_RootDse::SERVER_TYPE_EDIRECTORY</constant>
  421. </entry>
  422. </row>
  423. <row>
  424. <entry><code>boolean supportsExtension(string|array $oids)</code></entry>
  425. <entry>Determines if the extension is supported.</entry>
  426. </row>
  427. <row>
  428. <entry><code>string|null getVendorName()</code></entry>
  429. <entry>Gets the vendorName.</entry>
  430. </row>
  431. <row>
  432. <entry><code>string|null getVendorVersion()</code></entry>
  433. <entry>Gets the vendorVersion.</entry>
  434. </row>
  435. <row>
  436. <entry><code>string|null getDsaName()</code></entry>
  437. <entry>Gets the dsaName.</entry>
  438. </row>
  439. <row>
  440. <entry><code>string|null getStatisticsErrors()</code></entry>
  441. <entry>Gets the server statistics "errors".</entry>
  442. </row>
  443. <row>
  444. <entry><code>string|null getStatisticsSecurityErrors()</code></entry>
  445. <entry>Gets the server statistics "securityErrors".</entry>
  446. </row>
  447. <row>
  448. <entry><code>string|null getStatisticsChainings()</code></entry>
  449. <entry>Gets the server statistics "chainings".</entry>
  450. </row>
  451. <row>
  452. <entry><code>string|null getStatisticsReferralsReturned()</code></entry>
  453. <entry>Gets the server statistics "referralsReturned".</entry>
  454. </row>
  455. <row>
  456. <entry><code>string|null getStatisticsExtendedOps()</code></entry>
  457. <entry>Gets the server statistics "extendedOps".</entry>
  458. </row>
  459. <row>
  460. <entry><code>string|null getStatisticsAbandonOps()</code></entry>
  461. <entry>Gets the server statistics "abandonOps".</entry>
  462. </row>
  463. <row>
  464. <entry><code>string|null getStatisticsWholeSubtreeSearchOps()</code></entry>
  465. <entry>Gets the server statistics "wholeSubtreeSearchOps".</entry>
  466. </row>
  467. </tbody>
  468. </tgroup>
  469. </table>
  470. </sect4>
  471. </sect3>