Changeset 1629
- Timestamp:
- 06/18/08 17:45:49 (4 months ago)
- Files:
-
- trunk/src/main/php/net/stubbles/peer/ldap/stubLDAPConnection.php (modified) (5 diffs)
- trunk/src/main/php/net/stubbles/peer/ldap/stubLDAPSearchResult.php (modified) (2 diffs)
- trunk/src/test/php/net/stubbles/peer/ldap/stubLDAPConnectionTestCase.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/peer/ldap/stubLDAPURLTestCase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/peer/ldap/stubLDAPConnection.php
r1628 r1629 2 2 /** 3 3 * Represents a LDAP connection. 4 * Currently modifying of content in a LDAP directory is not supported. 4 5 * 5 6 * @author Richard Sternagel <richard.sternagel@1und1.de> … … 14 15 /** 15 16 * Represents a LDAP connection. 17 * Currently modifying of content in a LDAP directory is not supported. 16 18 * 17 19 * @author Richard Sternagel <richard.sternagel@1und1.de> … … 42 44 protected $usesProtocolVersionDefault; 43 45 /** 44 * ldap options (Keys are used for equality check, the values are actually superfluous). 46 * ldap options 47 * 48 * Keys are used for equality check, the values are actually superfluous). 49 * LDAP_OPT_NETWORK_TIMEOUT is not yet supported (requires >php5.3). 45 50 * 46 51 * @var array(int, int) … … 48 53 protected static $options = array(LDAP_OPT_DEREF => LDAP_OPT_DEREF, 49 54 LDAP_OPT_SIZELIMIT => LDAP_OPT_SIZELIMIT, 50 LDAP_OPT_NETWORK_TIMEOUT => LDAP_OPT_NETWORK_TIMEOUT,51 55 LDAP_OPT_TIMELIMIT => LDAP_OPT_TIMELIMIT, 52 56 LDAP_OPT_PROTOCOL_VERSION => LDAP_OPT_PROTOCOL_VERSION, … … 160 164 161 165 $success = @ldap_get_option($this->handle, $name, $retValue); 162 if($succes === false) {166 if($success === false) { 163 167 throw new stubConnectionException(ldap_error($this->handle)); 164 168 } trunk/src/main/php/net/stubbles/peer/ldap/stubLDAPSearchResult.php
r1625 r1629 75 75 } 76 76 77 // get objec class values77 // get object class values 78 78 if($name === 'objectClass') { 79 79 $objectClass = $values; … … 107 107 public function getEntry() 108 108 { 109 return ($this->current !== null ? $this->provideLDAPEntry($this->current()) : null);109 return ($this->current() !== null ? $this->provideLDAPEntry($this->current()) : null); 110 110 } 111 111 trunk/src/test/php/net/stubbles/peer/ldap/stubLDAPConnectionTestCase.php
r1625 r1629 56 56 * @test 57 57 */ 58 public function searchSucces full()58 public function searchSuccessfull() 59 59 { 60 60 $this->assertType('stubLDAPSearchResult', $this->ldap->bind()->search()); trunk/src/test/php/net/stubbles/peer/ldap/stubLDAPURLTestCase.php
r1625 r1629 234 234 * data provider for assurance of throwing stubMalformedURLException 235 235 * 236 * @return array<array<string>>236 * @return array<array<string>> 237 237 */ 238 238 public static function malformedUrlProvider() … … 255 255 * assure url roundtrip with ssl port 256 256 * 257 * @param string $url 258 * 257 259 * @test 258 260 * @dataProvider malformedUrlProvider
