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

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