tuto:ipasserelle:mail:mozilla_mcd

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision Les deux révisions suivantes
tuto:ipasserelle:mail:mozilla_mcd [14/09/2012 14:40]
dani
tuto:ipasserelle:mail:mozilla_mcd [14/09/2012 14:49]
dani
Ligne 48: Ligne 48:
    
     // Bind to the LDAP server     // Bind to the LDAP server
-    $link = @ldap_connect(LDAP_SERVER) or die ("Couldn't connect to the LDAP server");     ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, 3);     @ldap_bind($link) or die ("Couldn't bind to the LDAP server");+    $link = @ldap_connect(LDAP_SERVER) or die ("Couldn't connect to the LDAP server"); 
 +    ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, 3); 
 +    @ldap_bind($link) or die ("Couldn't bind to the LDAP server");
     // Lookup the user     // Lookup the user
     $result = ldap_search($link, USER_BASE, "uid=" . $uid);     $result = ldap_search($link, USER_BASE, "uid=" . $uid);
Ligne 219: Ligne 221:
     // Bind to the LDAP server     // Bind to the LDAP server
     // Not used for now, but might be usefull one day to generate conf per group or per user     // Not used for now, but might be usefull one day to generate conf per group or per user
-    $link = @ldap_connect(LDAP_SERVER) or die ("Couldn't connect to the LDAP server");     ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, 3);     @ldap_bind($link) or die ("Couldn't bind to the LDAP server");+    $link = @ldap_connect(LDAP_SERVER) or die ("Couldn't connect to the LDAP server"); 
 +    ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, 3); 
 +    @ldap_bind($link) or die ("Couldn't bind to the LDAP server");
     // Lookup the user     // Lookup the user
     $result = ldap_search($link, USER_BASE, "uid=" . $uid);     $result = ldap_search($link, USER_BASE, "uid=" . $uid);
  • tuto/ipasserelle/mail/mozilla_mcd.txt
  • Dernière modification: 20/10/2020 09:21
  • de heuzef