1
angryjon
Re: LDAP authentication
  • 2004/12/8 20:53

  • angryjon

  • Just popping in

  • Posts: 2

  • Since: 2004/12/8


you could try something along these lines
Not very elegant but just an idea


//This is just a very basic rough code idea.
//You will have to come up with a precise solution
//That fits your situation
//This is untested code!

function getBaseDnArray(){
$ouArray = array();
//add your OU's here
$ouArray[] = "IT";
$ouArray[] = "ACCOUNTING";
$ouArray[] = "SHIPPING";

$baseDnArray = array();

  for(
$x=0;$x<count($ouArray);$x++){
   
$base_dn[$x] = "OU=".$ouArray[$x].",O=org.example.com";
  }
return 
$baseDnArray;
}


When you call that function you'll get an array of strings to pump into ldap_search( )

I'll bet there is a better way to do this but the above idea would work in a pinch.
Alternately you could objectify the whole scenario to spit custom base dn objects into whatever function the ldap_search() has been wrapped in



2
angryjon
xHelp 0.6 Fatal Error
  • 2004/12/8 12:52

  • angryjon

  • Just popping in

  • Posts: 2

  • Since: 2004/12/8


PHP Fatal error: Cannot redeclare xhelpformattime() (previously declared in C:\Inetpub\wwwroot\modules\xhelp\functions.php:4) in c:\inetpub\wwwroot\modules\xhelp\functions.php on line 4


using XOOPS 2.0.7.3


Has anyone else had this issue?
It's a fresh install of the module...




TopTop



Login

Who's Online

211 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits