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

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