pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

PHP ZTDev Pastebin View Help

Posted by lindsaym on Tue 1st Dec 15:29 (modification of post by lindsaym view diff)
View followups from lindsaym | diff | download | new post

  1. //XXX: START OF LDAP Vars
  2.         $this->LDAP_login = TRUE; //Enable LDAP Authentication and replication
  3.         $this->ldap_failover_support = FALSE; //Allow the auth engine to rollover to the local DB auth if LDAP is unreachable
  4.         $this->ldap_tls_enable = FALSE; //Enable TLS encryption on LDAP connections make sure $this->ldap_server and $this->ldap_port use ldap:// and 389 repective
  5.         $this->ldap_zentrack_administator = "administrator";
  6.         $this->ldap_user_dn = 'ou=people,dc=example,dc=ca';
  7.         $this->ldap_base_dn = 'dc=example,dc=ca';
  8.         $this->ldap_user_dn_prefix = 'uid';
  9.         $this->ldap_requiredGroup_dn = 'ou=Groups,dc=example,dc=ca';
  10.         $this->ldap_groupMemberSearch = 'uniquemember';
  11.         $this->ldap_server = 'ldaps://192.168.56.2'; // 'ldaps://' for SSL encrytion 'ldap://' for clear text or TLS
  12.         $this->ldap_port = '636'; // '636' for SSL and '389' for clear or TLS
  13.         $this->ldap_to_ZT_protected_users = array("zenadmin","egate"); //Protected users in ZT user DB that are immune from replication, deletion, or LDAP Authenication
  14.         $this->ldap_default_accessLevel = '2';
  15.         $this->ldap_default_homeBin = '2';
  16.         $this->ldap_delete_orphined_users = FALSE; //If the user is removed from the ZT LDAP group do we delete (TRUE) the user record from ZT DB or mark inactive (FALSE)
  17.         $this->ldapToZTuserMapping = array(  //This array holds the ZT user DB fields and their mapped LDAP cousins
  18.                                                                             //NOTE: These must be manditory fields in your LDAP/AD schema
  19.                                                                             //Modify to suit your schema
  20.                                                                             //"ZTDB field"=>"LDAP/AD object"
  21.                                                                             "login"=>"uid",
  22.                                                                             "lname"=>"sn",
  23.                                                                             "fname"=>"givenname",
  24.                                                                             "initials"=>"initials",
  25.                                                                             "email"=>"mail",
  26.                                                                             "notes"=>"description"
  27.                                                                 );
  28.  
  29.         //Active Directory Compatability
  30.         $this->ADcompat = FALSE;
  31.         $this->ldap_AD_domain = 'users.domain.com';
  32.  
  33. //XXX: END OF LDAP Vars

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me