@@ -364,7 +364,6 @@ public function getUserByUsername($username, $baseDn = null, $scope = Ldap::SEAR
364
364
$ filter = sprintf ('(&(objectClass=user)(samaccountname=%s)) ' , AbstractFilter::escapeValue ($ username ));
365
365
break ;
366
366
case Ldap::ACCTNAME_FORM_BACKSLASH : // backslash style usernames, e.g. FOO\alice
367
- // @todo Not supported yet!
368
367
throw new Exception ('Backslash style not supported in LDAPGateway::getUserByUsername()! ' );
369
368
break ;
370
369
case Ldap::
ACCTNAME_FORM_PRINCIPAL :
// principal style usernames, e.g. [email protected]
@@ -374,7 +373,6 @@ public function getUserByUsername($username, $baseDn = null, $scope = Ldap::SEAR
374
373
);
375
374
break ;
376
375
case Ldap::ACCTNAME_FORM_DN : // distinguished name, e.g. CN=someone,DC=example,DC=co,DC=nz
377
- // @todo Not supported yet!
378
376
throw new Exception ('DN style not supported in LDAPGateway::getUserByUsername()! ' );
379
377
break ;
380
378
default : // default to principal style
@@ -406,7 +404,6 @@ public function getCanonicalUsername($data)
406
404
}
407
405
return $ data ['samaccountname ' ];
408
406
case Ldap::ACCTNAME_FORM_BACKSLASH : // backslash style usernames, e.g. FOO\alice
409
- // @todo Not supported yet!
410
407
throw new Exception ('Backslash style not supported in LDAPGateway::getUsernameByEmail()! ' );
411
408
case Ldap::
ACCTNAME_FORM_PRINCIPAL :
// principal style usernames, e.g. [email protected]
412
409
if (empty ($ data ['userprincipalname ' ])) {
0 commit comments