cvs: phpdoc-de /reference/ldap configure.xml reference.xml /reference/ldap/functions ldap-bind.xml ldap-connect.xml ldap-first-entry.xml

From: Date: Sat, 14 Dec 2002 00:08:41 +0000
Subject: cvs: phpdoc-de /reference/ldap configure.xml reference.xml /reference/ldap/functions ldap-bind.xml ldap-connect.xml ldap-first-entry.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-371@lists.php.net to get a copy of this message
betz Fri Dec 13 19:08:41 2002 EDT Added files: /phpdoc-de/reference/ldap configure.xml Modified files: /phpdoc-de/reference/ldap reference.xml /phpdoc-de/reference/ldap/functions ldap-bind.xml ldap-connect.xml ldap-first-entry.xml Log: sync to en Index: phpdoc-de/reference/ldap/reference.xml diff -u phpdoc-de/reference/ldap/reference.xml:1.7 phpdoc-de/reference/ldap/reference.xml:1.8 --- phpdoc-de/reference/ldap/reference.xml:1.7 Mon Sep 16 09:36:57 2002 +++ phpdoc-de/reference/ldap/reference.xml Fri Dec 13 19:08:41 2002 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.4 Maintainer: betz Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.6 Maintainer: betz Status: ready --> <reference id="ref.ldap"> <title>LDAP Funktionen</title> <titleabbrev>LDAP</titleabbrev> @@ -113,15 +113,7 @@ </para> </section> - <section id="ldap.installation"> - &reftitle.install; - <para> - LDAP Unterstützung ist in PHP im Standard nicht aktiviert. Sie müssen - die Konfigurationsoption - <link linkend="install.configure.with-ldap">--with-ldap</link> - beim Übersetzen von PHP angeben. - </para> - </section> + &reference.ldap.configure; &reference.ldap.ini; Index: phpdoc-de/reference/ldap/functions/ldap-bind.xml diff -u phpdoc-de/reference/ldap/functions/ldap-bind.xml:1.3 phpdoc-de/reference/ldap/functions/ldap-bind.xml:1.4 --- phpdoc-de/reference/ldap/functions/ldap-bind.xml:1.3 Sun Jun 9 06:55:48 2002 +++ phpdoc-de/reference/ldap/functions/ldap-bind.xml Fri Dec 13 19:08:41 2002 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- splitted from ./de/functions/ldap.xml, last change in rev 1.10 --> -<!-- last change to 'ldap-bind' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: betz Status: ready --> -<!-- OLD-Revision: 1.44/EN.1.2 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: betz Status: ready --> <refentry id="function.ldap-bind"> <refnamediv> <refname>ldap_bind</refname> @@ -24,12 +21,72 @@ Kennwort. &return.success; </para> <para> - Die <function>ldap_bind</function> Funktion führt eine bind - Operation auf einem Verzeichnis aus. Die Parameter - <parameter>bind_rdn</parameter> und - <parameter>bind_kennwort</parameter> sind optional, wenn diese + Die <function>ldap_bind</function> Funktion führt eine bind Operation + auf einem Verzeichnis aus. Die Parameter <parameter>bind_rdn</parameter> + und <parameter>bind_kennwort</parameter> sind optional, wenn diese fehlen wird ein anonymes bind versucht. </para> + <example> + <title>Verwenden von LDAP Bind</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// verwenden von ldap bind +$ldaprdn = 'uname'; // ldap rdn oder dn +$ldappass = 'password'; // entsprechendes password + +// verbinden zum ldap server +$ldapconn = ldap_connect("ldap.example.com") + or die("Keine Verbindung zum LDAP server möglich."); + +if ($ldapconn) { + + // binden zum ldap server + $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); + + // Bindung überpfrüfen + if ($ldapbind) { + echo "LDAP bind erfolgreich..."; + } else { + echo "LDAP bind fehlgeschlagen..."; + } + +} + +?> +]]> + </programlisting> + </example> + <example> + <title>Anonymes LDAP Bind </title> + <programlisting role="php"> +<![CDATA[ +<?php + +//verwenden von anonymen ldap bind + +// verbinden zum ldap server +$ldapconn = ldap_connect("ldap.example.com") + or die("Could not connect to LDAP server."); + +if ($ldapconn) { + + // anonymes binding + $ldapbind = ldap_bind($ldapconn); + + if ($ldapbind) { + echo "anonymes LDAP bind erfolgreich..."; + } else { + echo "anonymes LDAP bind fehlgeschlagen..."; + } + +} + +?> +]]> + </programlisting> + </example> </refsect1> </refentry> Index: phpdoc-de/reference/ldap/functions/ldap-connect.xml diff -u phpdoc-de/reference/ldap/functions/ldap-connect.xml:1.3 phpdoc-de/reference/ldap/functions/ldap-connect.xml:1.4 --- phpdoc-de/reference/ldap/functions/ldap-connect.xml:1.3 Sun Jun 9 06:55:48 2002 +++ phpdoc-de/reference/ldap/functions/ldap-connect.xml Fri Dec 13 19:08:41 2002 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- splitted from ./de/functions/ldap.xml, last change in rev 1.10 --> -<!-- last change to 'ldap-connect' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: betz Status: ready --> -<!-- OLD-Revision: 1.44/EN.1.2 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.3 Maintainer: betz Status: ready --> <refentry id="function.ldap-connect"> <refnamediv> <refname>ldap_connect</refname> @@ -43,6 +40,42 @@ URL und SSL Unterstützung wurden in 4.0.4 hinzugefügt </simpara> </note> + <example> + <title>Verbindung zu einem LDAP server.</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// LDAP Variablen +$ldaphost = "ldap.example.com"; // Ihr ldap servers +$ldapport = 389; // Die Portnummer ihres ldap servers + +// Verbindung zu LDAP +$ldapconn = ldap_connect( $ldaphost, $ldapport ) + or die( "Keine Verbindung zu {$ldaphost} möglich" ); + +?> +]]> + </programlisting> + </example> + <example> + <title>Sichere Verbindung zu einem LDAP server.</title> + <programlisting role="php"> +<![CDATA[ +<?php + +/* Stellen Sie sicher, dass Sie den korrekten Host angeben, + an dem Sie Ihr Sicherheitszertifikat übermittelt haben */ +$ldaphost = "ldaps://ldap.example.com/"; + +// Verbindung zu LDAP +$ldapconn = ldap_connect( $ldaphost ) + or die( "Keine Verbindung zu {$ldaphost} möglich" ); + +?> +]]> + </programlisting> + </example> </refsect1> </refentry> Index: phpdoc-de/reference/ldap/functions/ldap-first-entry.xml diff -u phpdoc-de/reference/ldap/functions/ldap-first-entry.xml:1.3 phpdoc-de/reference/ldap/functions/ldap-first-entry.xml:1.4 --- phpdoc-de/reference/ldap/functions/ldap-first-entry.xml:1.3 Sun Jun 9 06:55:48 2002 +++ phpdoc-de/reference/ldap/functions/ldap-first-entry.xml Fri Dec 13 19:08:41 2002 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- splitted from ./de/functions/ldap.xml, last change in rev 1.10 --> -<!-- last change to 'ldap-first-entry' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: betz Status: ready --> -<!-- OLD-Revision: 1.44/EN.1.2 --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.3 Maintainer: betz Status: ready --> <refentry id="function.ldap-first-entry"> <refnamediv> <refname>ldap_first_entry</refname> Index: phpdoc-de/reference/ldap/configure.xml +++ phpdoc-de/reference/ldap/configure.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- EN-Revision: 1.2 Maintainer: betz Status: ready --> <section id="ldap.installation"> &reftitle.install; <para> LDAP Unterstützung ist in PHP im Standard nicht aktiviert. Sie müssen die Konfigurationsoption <link linkend="install.configure.with-ldap">--with-ldap</link> beim Übersetzen von PHP angeben. </para> <note> <title>Hinweis für Win32 Benutzer</title> <simpara> Um dieses Modul unter Windows nutzen zu können, müssen Sie <emphasis>libsasl.dll</emphasis> aus dem DLL Ordner des PHP/Win32 Packets in den SYSTEM32 Ordner Ihres Systems kopieren (z.B.: C:\WINNT\SYSTEM32 oder C:\WINDOWS\SYSTEM32). </simpara> </note> </section> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.doc.de (#371) next »