3 * Tine 2.0 - http://www.tine20.org
7 * @license http://www.gnu.org/licenses/agpl.html
8 * @copyright Copyright (c) 2016 Metaways Infosystems GmbH (http://www.metaways.de)
9 * @author Philipp Schüle <p.schuele@metaways.de>
13 * Test class for Tinebase_User_Ldap
15 class Tinebase_LdapTest extends TestCase
18 * @see 0011844: decodeSid fails for some encoded SIDs
20 * TODO write a test for a decoded sid, like this: ^A^E^@^@^@^@^@^E^U^@^@^@^A.z<F4>^W<B0>Ot^^<DC>^O^V<DE>-^@^@
22 * we could dump the encoded sid like this:
23 * $str = pack('c*', $data);
24 * for ($i=0; $i < strlen($str); ++$i) {
25 * echo '\x' . ord($str[$i]);
28 public function testDecodeAlreadyDecodedSid()
30 $sid = "S-1-5-21-2127521184-1604012920-1887927527";
32 $decodedSid = Tinebase_Ldap::decodeSid($sid);
33 $this->assertEquals($decodedSid, $sid);