From ea9c41db3c53327897c9dc72494da81878697c99 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 29 Jul 2006 08:53:15 +0000 Subject: [PATCH] removed obsolete Samba 2/3 detection --- lam/lib/ldap.inc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lam/lib/ldap.inc b/lam/lib/ldap.inc index 3db45227..9c587a0e 100644 --- a/lam/lib/ldap.inc +++ b/lam/lib/ldap.inc @@ -70,10 +70,6 @@ class Ldap{ // Capabilities of the LDAP server /** Host attribute in inetOrgPerson */ var $supports_unix_hosts = false; - /** ObjectClass sambaAccount */ - var $supports_samba2_schema = false; - /** ObjectClass sambaSamAccount */ - var $supports_samba3_schema = false; /** Random number (changes on every page request) */ var $rand; @@ -288,8 +284,6 @@ class Ldap{ $line = $this->objectClasses[$i]; // search keywords if (strpos($line, "NAME 'inetOrgPerson'") && strpos($line, " host ")) $this->supports_unix_hosts = true; - if (strpos($line, "NAME 'sambaAccount'")) $this->supports_samba2_schema = true; - if (strpos($line, "NAME 'sambaSamAccount'")) $this->supports_samba3_schema = true; } } @@ -307,7 +301,7 @@ class Ldap{ $this->close(); // define which attributes to save return array("conf", "username", "password", "objectClasses", "attributes", - "supports_unix_hosts", "supports_samba2_schema", "supports_samba3_schema", "rand"); + "supports_unix_hosts", "rand"); } /** Reconnects to LDAP server when deserialized */