/[ludap]/ludap/ludap.lib.php
ViewVC logotype

Diff of /ludap/ludap.lib.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by mose, Fri Sep 19 07:04:08 2003 UTC revision 1.20 by mose, Fri Sep 19 07:15:23 2003 UTC
# Line 186  class ludap { Line 186  class ludap {
186                  }                  }
187                  if (!$me && $login && $pass) {                  if (!$me && $login && $pass) {
188                          $binddn = $this->conf['baseattr']."=".utf8_encode($login).", ".$this->conf['basedn'];                          $binddn = $this->conf['baseattr']."=".utf8_encode($login).", ".$this->conf['basedn'];
189                          if (ldap_bind($this->conn, $binddn, $pass)) {                          if (@ldap_bind($this->conn, $binddn, $pass)) {
190                                  $i = ldap_search($this->conn, $this->conf['groupdn'], $this->conf['groupattr']."= $binddn", array($this->conf['membattr']));                                  $i = ldap_search($this->conn, $this->conf['groupdn'], $this->conf['groupattr']."= $binddn", array($this->conf['membattr']));
191                                  $ix  = ldap_get_entries($this->conn, $i);                                  $ix  = ldap_get_entries($this->conn, $i);
192                                  for ($x=0; $x<$ix["count"]; $x++) {                                  for ($x=0; $x<$ix["count"]; $x++) {
# Line 243  class ludap { Line 243  class ludap {
243                  } else {                  } else {
244                          $sr = @ldap_search($this->conn, $this->conf['basedn'], "(".$match."=".$search.")", $heads);                          $sr = @ldap_search($this->conn, $this->conf['basedn'], "(".$match."=".$search.")", $heads);
245                          $info = @ldap_get_entries($this->conn,$sr);                          $info = @ldap_get_entries($this->conn,$sr);
246                          echo'<pre>';print_r(get_defined_vars());echo'</pre>';                          //echo'<pre>';print_r(get_defined_vars());echo'</pre>';
247    
248                          for ($n = 0; $n < $info['count']; $n++) {                          for ($n = 0; $n < $info['count']; $n++) {
249                                  foreach ($heads as $lt) {                                  foreach ($heads as $lt) {

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26