LDAP Functions

Table of Contents

add a note add a note

User Contributed Notes 45 notes

up
23
idbobby at rambler dot ru
7 years ago
First of all, sorry for my English.
Here are two functions to check group membership and some others which can be useful for work with LDAP (Active Directory in this example).

index.php
---------

<?php

$user
= 'bob';
$password = 'zhlob';
$host = 'myldap';
$domain = 'mydomain.ex';
$basedn = 'dc=mydomain,dc=ex';
$group = 'SomeGroup';

$ad = ldap_connect("ldap://{$host}.{$domain}") or die('Could not connect to LDAP server.');
ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ad, LDAP_OPT_REFERRALS, 0);
@
ldap_bind($ad, "{$user}@{$domain}", $password) or die('Could not bind to AD.');
$userdn = getDN($ad, $user, $basedn);
if (
checkGroupEx($ad, $userdn, getDN($ad, $group, $basedn))) {
//if (checkGroup($ad, $userdn, getDN($ad, $group, $basedn))) {
   
echo "You're authorized as ".getCN($userdn);
} else {
    echo
'Authorization failed';
}
ldap_unbind($ad);

/*
* This function searchs in LDAP tree ($ad -LDAP link identifier)
* entry specified by samaccountname and returns its DN or epmty
* string on failure.
*/
function getDN($ad, $samaccountname, $basedn) {
   
$attributes = array('dn');
   
$result = ldap_search($ad, $basedn,
       
"(samaccountname={$samaccountname})", $attributes);
    if (
$result === FALSE) { return ''; }
   
$entries = ldap_get_entries($ad, $result);
    if (
$entries['count']>0) { return $entries[0]['dn']; }
    else { return
''; };
}

/*
* This function retrieves and returns CN from given DN
*/
function getCN($dn) {
   
preg_match('/[^,]*/', $dn, $matchs, PREG_OFFSET_CAPTURE, 3);
    return
$matchs[0][0];
}

/*
* This function checks group membership of the user, searching only
* in specified group (not recursively).
*/
function checkGroup($ad, $userdn, $groupdn) {
   
$attributes = array('members');
   
$result = ldap_read($ad, $userdn, "(memberof={$groupdn})", $attributes);
    if (
$result === FALSE) { return FALSE; };
   
$entries = ldap_get_entries($ad, $result);
    return (
$entries['count'] > 0);
}

/*
* This function checks group membership of the user, searching
* in specified group and groups which is its members (recursively).
*/
function checkGroupEx($ad, $userdn, $groupdn) {
   
$attributes = array('memberof');
   
$result = ldap_read($ad, $userdn, '(objectclass=*)', $attributes);
    if (
$result === FALSE) { return FALSE; };
   
$entries = ldap_get_entries($ad, $result);
    if (
$entries['count'] <= 0) { return FALSE; };
    if (empty(
$entries[0]['memberof'])) { return FALSE; } else {
        for (
$i = 0; $i < $entries[0]['memberof']['count']; $i++) {
            if (
$entries[0]['memberof'][$i] == $groupdn) { return TRUE; }
            elseif (
checkGroupEx($ad, $entries[0]['memberof'][$i], $groupdn)) { return TRUE; };
        };
    };
    return
FALSE;
}

?>
up
6
oscar dot php at linaresdigital dot com
2 years ago
There is a lot of confusion about accountExpires, pwdLastSet, lastLogon and badPasswordTime active directory fields.

All of them are using "Interval" date/time format with a value that represents the number of 100-nanosecond intervals since January 1, 1601 (UTC, and a value of 0 or 0x7FFFFFFFFFFFFFFF, 9223372036854775807, indicates that the account never expires): https://msdn.microsoft.com/en-us/library/ms675098(v=vs.85).aspx

So if you need to translate it from/to UNIX timestamp you can easily calculate the difference with:

<?php
$datetime1
= new DateTime('1601-01-01');
$datetime2 = new DateTime('1970-01-01');
$interval = $datetime1->diff($datetime2);
echo (
$interval->days * 24 * 60 * 60) . " seconds\n";
?>

The difference between both dates is 11644473600 seconds. Don't rely on floating point calculations nor other numbers that probably were calculated badly (including time zone or something similar).

Now you can convert from LDAP field:

<?php
$lastlogon
= $info[$i]['lastlogon'][0];
// divide by 10.000.000 to get seconds from 100-nanosecond intervals
$winInterval = round/span>diff/ 'dn't">// divide bd">(();$winIntervround/span>$winInte-gon 'dn'All of thinodemanu were calits members (recursively).
*/<
} else {
 keyword">-&tspan>DateTime})"Time" seconds\n";

s>Time?>
20020iv>
<20020f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu">20020iv
<20020f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down 2/20020i div>
&par6-10-11 by:12ass="date"1title"2015-01-28 11:47">2 years ago
wh>laplcupiIX tc_batch ./en/hin to>, Iahaap-reissu wh>y fons t6" cplodie(ldap_ourns blaplng time zone Eh LDAPhp">ldsiLDAPhf='/manualow you can convert from LDAP field:

= i$group 'dc=mydomain,dc=ex';=pan>$entries = ldap_connect;= i);
/span>$group 'bob';
$password 'dn');
$password );ldap_connect;, $passg"n class="string">'dn');
@$entries = span>ldap_unbind=d">})"$user, $passg"n class="string">'dn'@);
?>
<73191iv
73191f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"73191iv
73191f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <73191i
273191i div>
&pa07-02a>2 years ago<73191iv
= id d">=hf='/manualng time zone br />, , @Edit ">E6"> 30670.com/en-us/library/ms675098(v=vs.85" rphp">Edit ">E6"> 30670.ht='12'> ?>
<77553iv
77553f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"77553iv
77553f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <77553i
277553i div>
&pa07-09-03 06:49ass="date"10title="2015-01-28 11:47">2 years ago<77553iv
= ldap_ow you can coputenv(r /> ?>
<42435iv
42435f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"42435iv
42435f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <42435i
242435i div>
&pa04-05-16 06:2lass="date"13title="2015-01-28 11:47">2 years ago<42435iv
&n"; &n!($= (br />userd"ep;   };br />&n"; &n!($= (br />_tring"userd"g time zone - Removan $
  • * is:"-r />Nawa="2lw>7">As &n";
    * is: ". d">= [$i][ ";"g time zone I"2lscape 1
    ramoutng time zone Hcode"><> —comow you can convert from LDAP field:

    = tring"an>$password ( n>" seconds\n";<$span_r />/span>$group n>" seconds\n";<$span_">, /span>$group , " seconds\n"'dn', dn homes RetentirastLogon an.upan cn.');, _$basedn n>" seconds\n"'dn' .');$basedn , , }'dn', 'dnss="strin; &n!(pan>);ldap_co=@es = ldap_connect;= onnect$passserdn, getDN($ad, $grouDN($ad,) o" die(=honnectord">}0);
    }
    'dnss="strin; &n!(pan>);ldap_u=@es = span>ldap_unbindldap_cos=*)'ldap_cos=*)', $passserdn, getDN($ad, $grouDN($ad,) o"Un hon>}0);
    }
    = n>0
    et, lastLogon an<\n"'dnss="strin; &n!(pan>);ldap_s=@es = ldap_searchldap_cos=*)', _ldap_cos=*)'$passserdn, getDN($ad, $grouDN($ad,) o"Un homesd">=honnectord">}0);
    $ad
    = ldap_get_entriesldap_cospan>);ldap_s1-01');
    } else {
     ult">$entries
    = ldap_get_entriesldap_cos=*)'ldap_s1-01') o"Tmat with a vasp; "You're authorized =*)'"You're authorized an>) o"
    "d">}
            fo>} else {
     ult">$entr>        d">=
    0= );
    =
    $i= ]; $i);
    } else {
       "N/>* is: "s="string">"You're authorized =*)'
    = $info[$i[$i][) o"
    "d">}
    );
    } else {
       "Displayhp">ldis: "s="string">"You're authorized =*)'
    = $info[$i[$i][) o"
    "d">}
    );
    } else {
       "Ed>"You're authorized =*)'
    = $info[$i[$i][) o"
    "d">}
    );
    } else {
       "Telephcalc with ais: "s="string">"You're authorized =*)'
    = $info[$i[$i][) o"
    "d">}
    ;
    }
    ?>
  • <712/div
    712/df="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"712/div
    712/df="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <712/di6&pa66lass="tally" id="V9931" title="71% like this..."> 2712/di6de>
    &pa06-11-16 06:34ass="date"11title="2015-01-28 11:47">2 years ago<712/div
    /can be useful for(ie:ecks group aw" ts d">{);Ymethinglook up Ret">, =:// wh>, ie:escap"onne1.= ()library/ms675ion.phpB>, DN{
    oc wll ie:e""eyword" qun" t).ord">);swordTime actD uslltth>ag{* inhold>,
    );Ymething2lldsubsede">at probablyt">/*
    * Thi, exceptodemanuing)./libraallbac fnt
    Time?>
    <55262iv
    55262f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"55262iv
    osnet dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa05-07a>
    2 years ago<55262iv
    >, anybodyahasp d"> n cligu retuPHPthers whichsupport ccou SolarThe 0 box, hcode"><> —ccligu e0lint;IescaNow you can co./ccligu e0--hers-nsapi=/opt/SUNWwbsvr0--en -libgcc0--dis -libxml0--hers-e-no=/usr/demanu--p/stix=/opt/tex/tex-5.0.4w you can coTmatimportann lasn clawn" e"><> demans="hscaNt
    * in
    Time?>
    <46984iv
    46984f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"46984iv
    osdk dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa04-10-29 05:36ass="date"13title="2015-01-28 11:47">2 years ago<46984iv
    , -endi7">hex- with aap_one,int ca'hexdec'thing similaspan cEndi7"($hex>$i-2; $xunt'<= 0; $x=$x-2>$i++) { if (0* Thimestagov i SIDspan c$i++) {">++) {// Gedateviss="-lasn ">$i sub36854; $xt">$i++) { sub"pan[$x]a= hexdec(dit6">Endi7"(subs.p($hex_sid,16+/$x*8),8)e);>++) { if (0<_sid>suime?>
    <71687iv
    71687f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"71687iv
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa06-12-11 05:33ass="date"11title="2015-01-28 11:47">2 years ago<71687iv
    <47427iv
    47427f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"47427iv
    osnl dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa04-11-15div 51ass="date"13title="2015-01-28 11:47">2 years ago<47427iv
    t">uy ff='/manuals (whicS),sPHPthelltbsp; &na m/ennua statretup, 922337sring"ahin/spabeaf">= .w you ;swordTAsnetwork.aspfficahiptuy f functiaspfficatak73600lac /spf='/manual=.>}cl' (omethingscapwn" pad11br imly)erva, o dis 2oertatch ,00lac e.ph/libra7360lint; Co Retd">=.>}cl filcow you can coTLSpanQCERT775807swordTime actfter imly,ncodtrmat m arl r />@Time?>
    <8221div
    8221df="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"8221div
    8221df="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <8221di6&pa10lass="tally" id="V11664" title="71% like this..."> 28221di6de>
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa08-04-01 06:54ass="date"9title="2015-01-28 11:47">2 years ago<8221div
    ).//spl">, ).llbac?>cRet">, —cmmrvallint;helltdisplay, ).lladervalcopy 2/amief=em aresswordTHop/>imly isp/a> ful!swordTime acNle=: zone Ymetmu/>cmmrvalvide un AD D">{swn<>oofomhrie( —cmmrvalvide > run din?>
    <59902iv
    59902f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"59902iv
    59902f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <59902i6&pa10lass="tally" id="V11664" title="71% like this..."> 259902i6de>
    osp,">osnys;wcem>oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa05-12-19 12 28ass="date"11title="2015-01-28 11:47">2 years ago<59902iv
    );YmethingruCo Rly app rightivide > —cmmrvallint.w you can coTmatW/s2K3 Ha> olartaclt; Co RetM$ KB:o that the accphpsupportllow" target="_t
    n-us/?scstrkb;blank;255602i6m/en-us/library/ms675098(v=vs.85" rphpsupportllow" target="_t
    n-us/?scstrkb;blank;255602"gen (XADM: Browsretu7"d QueryretuUsretup,e LDP Utilitying time zone So id98(v=vsr f='/man/n>);I'm demalTime?>
    <57860iv
    57860f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"57860iv
    57860f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <57860i6&pa10lass="tally" id="V11664" title="71% like this..."> 257860i6de>
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa05-10-16 08:53ass="date"1 title="2015-01-28 11:47">2 years ago<57860iv
    la
    were(GMT+10) wh>y aThimesUnix need to tris CoGMT. hpcodem e tan be useful y's.ttart0vide b-Jan-secon00:00:00oGMTervalth>t with a vat">// di
    ld by 0.000.000 Thimough!Time?>
    <57855iv
    57855f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"57855iv
    57855f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <57855i6&pa10lass="tally" id="V11664" title="71% like this..."> 257855i div>
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa05-10-16 04:32ass="date"1 title="2015-01-28 11:47">2 years ago<57855iv
    workretun eat/can be useful forafter .basblylladee.ph/libra7360artaclt;w you can cowwwllow" target="_;wch> scriptc nter/can collsme"gts/qavaa/sept05/hey0902.mspx;w you can coulated badly (includ,tally bayasavt;ometons tfrus.ph/a> ./In imesartaclt; y ispbr /s="an , 9223isp2p; o gegersate/time retup,e with a va0.000.000 Thumber 0b-Jan-secon00:00:00ng time zone Howeng"aal>t diff56 Ret
    Tn ADl w you can coThometaal>ttneed to tr
    diff56 )./l are > re ( pfbr AD hob f.bppyun eaimly /a> s!Time?>
    <50840iv
    50840f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"50840iv
    50840f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <50840i6&pa10lass="tally" id="V11664" title="71% like this..."> 250840i6de>
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa05-03-11 02:04ass="date"1 title="2015-01-28 11:47">2 years ago<50840iv
    osnl'sp/spe./Iflometry ftryretuphpn>lwhicS URIun ea}cligu pfilcaaThdescribk idenjabba, br aape agedvely,pscap Retenvi-28br /tmett736sa homet />=.>}cl(5)>Time?>
    <48343iv
    48343f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"48343iv
    48343f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <48343i6&pa10lass="tally" id="V11664" title="71% like this..."> 248343i6de>
    &pa04-12-20 12 44ass="date"1 title="2015-01-28 11:47">2 years ago<48343iv
    =pf='/manual .an>;
    }<

    }
    ;
    }ldap_co/>        fe=dowa/span>Datspan>);, $passpan>);{Datr>     s="keywo0myD">{}++) {">++) {">++) {">++) {">++) {">++) {">++) {">++) {pan>);= onnect$pasr>     s="keywo0rd">( n>" secon){>, /en on>++) {">++) {pan>);ldap_cor>        fe=dowa/span>Dat an>) o"@"s="string">"You're authorized pan>);{Datsult."-r />";ult);ldap_co=@es = ldap_connect;= onnect$passsi++) {>ldap_cos=*)');, $passsi++) {keyword">++) {>";ult= ldap_unbindldap_co>sult* nbindldap_co>sult= ;clad">=ult=ult";ult= ldap_unbindldap_co>sult* nbindldap_unt">0;
    }
    ?>
    <45929iv
    45929f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"45929iv
    45929f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <45929i6&pa10lass="tally" id="V11661" title="71% like this..."> 245929i6de>
    &pa04-09-23 12 32ass="date"13title="2015-01-28 11:47">2 years ago<45929iv
    , Tmly ispe of t fionpru fbr queryretuMS/can be useful fo.an>;
    }<

    ldap_unbindldap_get_ens=*)');, ldap_get_ens=*)');<3>ldap_unt">0= ldap_unbindldap_get_ens=*)');, ldap_get_ens=*)');][0Time?>
    <36367iv
    36367f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"36367iv
    36367f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <36367i6&pa10lass="tally" id="V11661" title="71% like this..."> 236367i6de>
    &pa03-10-07 01:5lass="date"14title="2015-01-28 11:47">2 years ago<36367iv
    <32405iv
    32405f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"32405iv
    32405f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <32405i6&pa10lass="tally" id="V11661" title="71% like this..."> 232405i6de>
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa03-05-26div 01ass="date"14title="2015-01-28 11:47">2 years ago<32405iv
    < Retcan be useful for>}cligu s. Lookretu 9223isppoetu 9ow you can co that the accphpwwwltexbuilberet="_d>swnber fan cl a><">n flot">swnber>Time?>
    <31664iv
    31664f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"31664iv
    31664f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <31664i6&pa10lass="tally" id="V11661" title="71% like this..."> 231664i6de>
    &pa03-04-29 03:09ass="date"14title="2015-01-28 11:47">2 years ago<31664iv
    =hvr />tpoetretu 9:o that the accphpbugs6"> a> pbug6"> 9485com/en-us/library/ms675098(v=vs.85" rphpbugs6"> a> pbug6"> 9485"gen aibrar zone O/aw/s2k I llibra dn> se it ysstepsu7"d g>osd">=h howorkow you 1.ocopye"> _d">=.dll vide > agoensa> pfblberh howinnt/sys;wo32w you 2. editowinnt/"> aini/s).p, 92l">=hi /en d (r /}
    dine)l w you 3.re tart0IISl w you T, 9'sei><7"d havt;vr un ea=.;swordTime actawn" e
    t6" c ed>foun ea= ?>
    <30863iv
    30863f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"30863iv
    30863f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <30863i6&pa10lass="tally" id="V11661" title="71% like this..."> 230863i6de>
    &pa03-04-con09:05ivs="date"14title="2015-01-28 11:47">2 years ago<30863iv
    _d">=agoensa> .oYmethavt;coTime?>
    <29994iv
    29994f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"29994iv
    29994f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <29994i6&pa10lass="tally" id="V11661" title="71% like this..."> 229994i6de>
    &pa03-03-03n09:12ivs="date"14title="2015-01-28 11:47">2 years ago<29994iv
    pccou W/s2keboxow you can coAfter n>pyretu"> _d">=."> rvallibtasl.dll in e807yf"retlettLogon andpoenr (c:\W/sNT\Sys;wo32, c:\"> ...) I dec/spal>).lladetmatt swn .tgo filc.can coTmatt 01-uct hagoensa> s say: "Someaagora DLLsparapbsquirk i
    s. Ple>, copyetmatbund d dp_stvide > 'dp_s/'ttLogon andicodistli> ppacknua toaomer w/spows/sys;woh(W/s9.x) m w/snt/sys;wo32h(W/sNT, W/s2n c, XP)ttLogon an./Iflometrllladyswnlfated badly isp/spaworkretuf=rogonly."aibrar zone So I didgeh only.p, 9: copyeALL> Ret \dp_s" toa"c:\W/sNT\Sys;wo32".ime acNlw> Rey loadob aimly /a> sated onr>Time?>
    <25894iv
    25894f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"25894iv
    25894f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <25894i6&pa10lass="tally" id="V11661" title="71% like this..."> 225894i6de>
    osfr dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa02-10-10 06:26ass="date"15title="2015-01-28 11:47">2 years ago<25894iv
    * Th2 if (, 16. Butaal>twhichMD57r />* Th2 ; &nbssenHcom Cob>, 64.;swordT$pwtrototo";ult, 64_enHcom(mhash(MHASH_MD5,$pwt)1-01'<"dd "{MD5}"ivid /t$pwt_md5aap_obta Co Retsame./l are astwhichdseful fo.an>?>
    <25055iv
    25055f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"25055iv
    25055f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <25055i6&pa10lass="tally" id="V11661" title="71% like this..."> 225055i div>
    osorg dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa02-09-09n09:41ass="date"15title="2015-01-28 11:47">2 years ago<25055iv
    < Rett gend/dt6" c. hula">swnber,98(v=vsr SAM a036854av/di isp/irstv/di.>{>{<,lomerpUPN7mightibeafirstv/di.>{anibeascaNttoon>< Retm baodn>Time?>
    <23159iv
    23159f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"23159iv
    23159f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <23159i6&pa10lass="tally" id="V11661" title="71% like this..."> 223159i6div>
    &pa02-07-10 05:06ass="date"15title="2015-01-28 11:47">2 years ago<23159iv
    >{=hsring"ait ilenn>< Rete=dowa/s.aibrar zone Somebody< Retperss 1mu/>NAME Co Rettn;swordTime acNO.oYmethingscapimint");swordTime ac; &n!ra= d">= ("
    ",
    )) { UE0= @d">= span(br />, fe=do, fpa/>0Time?>
    <2248div
    2248df="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"2248div
    2248df="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <2248di6&pa10lass="tally" id="V11661" title="71% like this..."> 22248di6div>
    &pa02-06-19 08:48ass="date"15title="2015-01-28 11:47">2 years ago<2248div
    td">=hsring".ord">);I f">= ;c, 92"> hwa="usretu7">olberhprotocol rvalcdsedee.ph/libra7360php2337slapd.>}clow you can coaibra}cl''i
    fouaboutaimesaibra<>;wol Co Retslapd.>}cl vilc,>imly ispn?>
    <17882iv
    17882f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"17882iv
    17882f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <17882i6&pa10lass="tally" id="V11661" title="71% like this..."> 217882i6div>
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa01-12-31 04:36ass="date"15title="2015-01-28 11:47">2 years ago<17882iv
    < Retperss 1mu/>NAME Co Rettn; zone zone NB :ase7srnsst be ! zone zone $dn="cn=DUPOND John, cn=Usris, dc="pamerdupc, dc=g><" ulttwhichdatab>, /omet6" :; zone zone ; &n!(br />a= d">= ("
    ",
    ))) { zone die ("Crie(osca= @d">= span(br />, fdn, fpa/>osn>imly uslltieefulli
    ?>
    <17098iv
    17098f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"17098iv
    17098f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <17098i6&pa10lass="tally" id="V11661" title="71% like this..."> 217098i6div>
    =ty_arz"2g hotd>oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa01-11-26d09:46ass="date"16title="2015-01-28 11:47">2 years ago<17098iv
    >{<; zone o7aaTha scaot: zone eg: fschultz@omerm>>{<; zone (becau, /omethin'tsmes RetSub.pecaaThanonymous).; zone zone Th>< RetMS schema. zone zone F.B can co that the accphpwwwlimpharet="com/en-us/library/ms675098(v=vs.85" rphpwwwlimpharet=""genaime?>
    <76155iv
    76155f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"76155iv
    76155f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <76155i6&pa5lass="tally" id="V11660" title="71% like this..."> 276155i6div>
    &pa07-07-03n05:10ass="date"10title="2015-01-28 11:47">2 years ago<76155iv
    = g"aal>tdemal= l>).ll/>* h2 if ({{* hn).lls( pprop/rties.w you can coTodaime?>
    <73971iv
    73971f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"73971iv
    73971f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <73971i6&pa5lass="tally" id="V11660" title="71% like this..."> 273971i6div>
    osru dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa07-03-18n09:01ass="date"10title="2015-01-28 11:47">2 years ago<73971iv
    _d">=.dll'. Copy , bupaef="fpstslltswnbds.w you can coAfter diggretu7lltp,">= ,int caboea /}<4ilersserss="). hpcngju/>?>
    <67955iv
    67955f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"67955iv
    &pa06-07-07n09:05ivs="date"11title="2015-01-28 11:47">2 years ago<67955iv
    );I>l>)ok di rado36upimeuphpimenclltp,ati>fo areuale ;clapoetu awn" eh>ratn eatdetai_stbupai/senom >);I'be placedee.phdetai_st 922337/libra7360URLl Cohop/setm cated onr elseawslltbenefi><7"d wslltbe oclasolve22337proll"m mu/a>m ratquickly.p, n I didng time zone sthat the accphpgreg.ca> lla> p"> _d">=_ssl.lass=om/en-us/library/ms675098(v=vs.85" rphpgreg.ca> lla> p"> _d">=_ssl.lass"genaibrar zone Good luck!Time?>
    <108395iv
    108395f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"108395iv
    108395f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <108395i6&palass="tally" id="V1166-1" title="71% like this..."> 2108395i6de>
    &pa12-04-23 06:04ass="date"5title="2015-01-28 11:47">2 years ago<108395iv
    ?>
    <40245iv
    40245f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"40245iv
    &pa04-02-26d08:23ass="date"13title="2015-01-28 11:47">2 years ago<40245iv
    <34145iv
    34145f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"34145iv
    34145f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <34145i6&pa5lass="tally" id="V11660" title="71% like this..."> 234145i6de>
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa03-07-16 10:49ass="date"14title="2015-01-28 11:47">2 years ago<34145iv
    _dser />/dp_s/*.dlllcla
    /sys;wos32/llade7"d exexcspatprPbisss="hcla"e807yone"e7"d > agoensa> s *.dll.223isphingp/svr /twarnlds.ofaAcl/entiThdenicl ofa"> _d">=.dllTime?>
    <44675iv
    44675f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"44675iv
    &pa04-08-12 01:26ass="date"13title="2015-01-28 11:47">2 years ago<44675iv
    b>, /DC"20a">sw tan be useful foh2k3, ansl85).metadsHeuristicspcla0000002l Cocan be useful fo. Tmly aibras mes)./r /> Rey didg Cocan be useful foh2k2.oYmethingspdIX tdsHeuristicspby lauomoo 'f='/manual'e7"d creati ranew f='/manual. hpcngg>oo n>=hsring". Nagohsrlf tnp,es'Brrase'pmenue7"d choose 'mobaty'. hpcoDN *might* l)ok s="tally": ime acy/ms67CN=useful fohSrinice,CN=W/spows NT,CN=Srinices,CN=C}cligu ,DC=my/}<47"y,DC=g>7360phpmesn eaouta of tfyretu7">OU.aibrar zone -daime?>
    <26692iv
    26692f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"26692iv
    26692f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <26692i6&palass="tally" id="V1166-1" title="71% like this..."> 226692i6div>
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa02-11-08 10:44ass="date"15title="2015-01-28 11:47">2 years ago<26692iv
    <20961iv
    20961f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"20961iv
    20961f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <20961i6&palass="tally" id="V1166-1" title="71% like this..."> 220961i6div>
    h^ pixelcop ,scar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa02-04-23 01:33ass="date"15title="2015-01-28 11:47">2 years ago<20961iv
    ino NAB,< Ret/libra7360.bspworkaNt
    , d cco> w/s2k eh LDAPaby webmditee@"pamerdupc.g><) ow you can cofipa= "remalaoct";ulta= d">= (fip))) { UE);osca).
    fip

    ";ult= @d">= span(br />, fdn, fpa/>);osn>a
    fdn
    g"panentch";ultDN: $sdn; Fiape : $fiape

    ";ult= srs, fsdn, $fiape );ultfou= d">=
    , fs );ultfo["* ed
    "; nzone print<"
    ";ultfo);nzone print<"
    ";uime?>
    <11809iv
    11809f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"11809iv
    11809f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <11809i6&palass="tally" id="V1166-1" title="71% like this..."> 211809i6div>
    osecupm>osedupm>osau dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa01-03-08 01:32ass="date"16title="2015-01-28 11:47">2 years ago<11809iv
    < Retperss 1"panentch>{854ry zone zone Th>twhichdatab>, /omet6" : zone zone word">);
    $group
    = span>ldap_unbind=$pass=*)');$pass=*)');ldap_s1-=*)');
    zone w)');
    ldap_s; &n!(bind
    =>span>$group = ldap_connect) o"
    "$pass=
    $gn />))) { UE);ord">)ord">);     ord">) o"Crie(oscaldap_s1- zone } zone w)');span>$group ) o"cn=cdm Cis.ph/or, cn=usris, dc=mysring"tedc=g><,ldc="p"d">});$group ) o"MyPa/>}span>$gro@up = span>ldap_unbind=$pass=*)');$pass=*)');ldap_s1)) { UE);ord">)ord">);     ord">) o"Crie(osn>);) o">ldap_s1- zone } zone w)');
    zone w)'er /> a">=>datab>, >Time?>
    <34784iv
    34784f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"34784iv
    34784f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <34784i6&pa33ass="tally" id="V1166-1" title="71% like this..."> 234784i6div>
    oscar dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa03-08-06div 58ass="date"14title="2015-01-28 11:47">2 years ago<34784iv
    Rey hin'tsmescan be useful fo...aibrar zone Iawdin'ts oclasrsoCocan be useful foh854il I didg23isp(immedi"#1ly cfter imesd">= )ow you can cod">= srt_op>= span98(vI didn'tsme9223ispop>);Alsoawn" ,aI .bNttoosetnp,esop/7onuBEFORE?>
    <61144iv
    61144f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"61144iv
    61144f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <61144i6606"> &p5ass="tally" id="V1166-2" title="71% like this..."> 261144i6div>
    oscaem>osuk dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa06-01-26d08:43ivs="date"11title="2015-01-28 11:47">2 years ago<61144iv
    ).snixupimeuste.p.w you O>ans'be g>osa.snixupimeuste.p,pPHPthing/l are itaaTha dIX .w you can coH>rat"t;> /}deucladlai9ow you can coan>);ord">);ord">);$dIX Lms67Int=$i>fo[$i][ "][0]s // coooseca);ord">);ord">);$secsAfterADEpo/a>=;$dIX Lms67Int / (10000000)s // seca);ord">);ord">);$ADToUnixCa- ADuepo/a>*onuith "><1-2pimal*oseca);ord">);ord">);$snixTsLditLog> =intval($secsAfterADEpo/a-$ADToUnixCa);ord">);ord">);$ =dIX ("d-m-Y",;$snixTsLditLog> )s // /l aren?>
    <108670iv
    108670f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"108670iv
    108670f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <108670i6606"> &p5ass="tally" id="V1166-6" title="71% like this..."> 2108670i6div>
    ossi dot php at linaresdigital dot comclass="genanchor" href="#116606"> &pa12-05-16 12:21ass="date"5title="2015-01-28 11:47">2 years ago<108670iv
    );
    $group = ldap_con...); zone w)');= srt_op>ldap_unbind$pass=*)');$pass=*)');<3>ldap_s1- zone w)');= span>ldap_unbind$pass...); zone w)');
    Time?>
    <80410iv
    80410f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"80410iv
    80410f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <80410i6&pa14ass="tally" id="V1166-5" title="71% like this..."> 280410i6div>
    &pa08-01-14 12:53ivs="date"9title="2015-01-28 11:47">2 years ago<80410iv
    /}cligu scriptefai_st>)./pan9whic7libraf= g"a/usr/dib64, becau, /itpccly>mes= g"a/usr/dib.aibrar zone I9´sphardHcom,lsodLDFLAGS, CPPFLAGS aval--dibdseparapofan).sca, avalnei flot"t;es7>).
    es7>/}cligu rvalcape onos/pan9a">=>libt >= g"a/usr/dib" br "hinn>os/pan9a">=.h"aef="fpupon/}cligu .aime?>
    <58127iv
    58127f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=up" title="Vote up!" class="usernotes-voteu"58127iv
    58127f="/manual/vote-note.php?id=116606&page=ref.ldap&vote=down" title="Vote down!" class="usernotes-voted">down <58127i6&palass="tally" id="V1166-3" title="71% like this..."> 258127i6div>
    &pa05-10-24div 52ass="date"12title="2015-01-28 11:47">2 years ago<58127iv