Lines Matching refs:attributes

742     * @param array $attributes The attributes you wish to query e.g. defaultnamingcontext
745 public function getRootDse($attributes = array("*", "+")) {
748 $sr = @ldap_read($this->ldapConnection, NULL, 'objectClass=*', $attributes);
795 * @param array $attributes Attributes to be queried
798 public function adldap_schema($attributes){
800 // LDAP doesn't like NULL attributes, only set them if they have values
806 array_walk($attributes, array($this, 'encode8bit'));
808 if ($attributes["address_city"]){ $mod["l"][0]=$attributes["address_city"]; }
809 if ($attributes["address_code"]){ $mod["postalCode"][0]=$attributes["address_code"]; }
810 //if ($attributes["address_country"]){ $mod["countryCode"][0]=$attributes["address_country"]; } // use country codes?
811 if ($attributes["address_country"]){ $mod["c"][0]=$attributes["address_country"]; }
812 if ($attributes["address_pobox"]){ $mod["postOfficeBox"][0]=$attributes["address_pobox"]; }
813 if ($attributes["address_state"]){ $mod["st"][0]=$attributes["address_state"]; }
814 if ($attributes["address_street"]){ $mod["streetAddress"][0]=$attributes["address_street"]; }
815 if ($attributes["company"]){ $mod["company"][0]=$attributes["company"]; }
816 if ($attributes["change_password"]){ $mod["pwdLastSet"][0]=0; }
817 if ($attributes["department"]){ $mod["department"][0]=$attributes["department"]; }
818 if ($attributes["description"]){ $mod["description"][0]=$attributes["description"]; }
819 if ($attributes["display_name"]){ $mod["displayName"][0]=$attributes["display_name"]; }
820 if ($attributes["email"]){ $mod["mail"][0]=$attributes["email"]; }
821 if ($attributes["expires"]){ $mod["accountExpires"][0]=$attributes["expires"]; } //unix epoch format?
822 if ($attributes["firstname"]){ $mod["givenName"][0]=$attributes["firstname"]; }
823 if ($attributes["home_directory"]){ $mod["homeDirectory"][0]=$attributes["home_directory"]; }
824 if ($attributes["home_drive"]){ $mod["homeDrive"][0]=$attributes["home_drive"]; }
825 if ($attributes["initials"]){ $mod["initials"][0]=$attributes["initials"]; }
826 if ($attributes["logon_name"]){ $mod["userPrincipalName"][0]=$attributes["logon_name"]; }
827 if ($attributes["manager"]){ $mod["manager"][0]=$attributes["manager"]; } //UNTESTED ***Use DistinguishedName***
828 if ($attributes["office"]){ $mod["physicalDeliveryOfficeName"][0]=$attributes["office"]; }
829 if ($attributes["password"]){ $mod["unicodePwd"][0]=$this->user()->encodePassword($attributes["password"]); }
830 if ($attributes["profile_path"]){ $mod["profilepath"][0]=$attributes["profile_path"]; }
831 if ($attributes["script_path"]){ $mod["scriptPath"][0]=$attributes["script_path"]; }
832 if ($attributes["surname"]){ $mod["sn"][0]=$attributes["surname"]; }
833 if ($attributes["title"]){ $mod["title"][0]=$attributes["title"]; }
834 if ($attributes["telephone"]){ $mod["telephoneNumber"][0]=$attributes["telephone"]; }
835 if ($attributes["mobile"]){ $mod["mobile"][0]=$attributes["mobile"]; }
836 if ($attributes["pager"]){ $mod["pager"][0]=$attributes["pager"]; }
837 if ($attributes["ipphone"]){ $mod["ipphone"][0]=$attributes["ipphone"]; }
838 if ($attributes["web_page"]){ $mod["wWWHomePage"][0]=$attributes["web_page"]; }
839 if ($attributes["fax"]){ $mod["facsimileTelephoneNumber"][0]=$attributes["fax"]; }
840 if ($attributes["enabled"]){ $mod["userAccountControl"][0]=$attributes["enabled"]; }
841 if ($attributes["homephone"]){ $mod["homephone"][0]=$attributes["homephone"]; }
844 if ($attributes["group_sendpermission"]){ $mod["dlMemSubmitPerms"][0]=$attributes["group_sendpermission"]; }
845 if ($attributes["group_rejectpermission"]){ $mod["dlMemRejectPerms"][0]=$attributes["group_rejectpermission"]; }
848 if ($attributes["exchange_homemdb"]){ $mod["homeMDB"][0]=$attributes["exchange_homemdb"]; }
849 if ($attributes["exchange_mailnickname"]){ $mod["mailNickname"][0]=$attributes["exchange_mailnickname"]; }
850 if ($attributes["exchange_proxyaddress"]){ $mod["proxyAddresses"][0]=$attributes["exchange_proxyaddress"]; }
851 if ($attributes["exchange_usedefaults"]){ $mod["mDBUseDefaults"][0]=$attributes["exchange_usedefaults"]; }
852 if ($attributes["exchange_policyexclude"]){ $mod["msExchPoliciesExcluded"][0]=$attributes["exchange_policyexclude"]; }
853 if ($attributes["exchange_policyinclude"]){ $mod["msExchPoliciesIncluded"][0]=$attributes["exchange_policyinclude"]; }
854 if ($attributes["exchange_addressbook"]){ $mod["showInAddressBook"][0]=$attributes["exchange_addressbook"]; }
855 if ($attributes["exchange_altrecipient"]){ $mod["altRecipient"][0]=$attributes["exchange_altrecipient"]; }
856 if ($attributes["exchange_deliverandredirect"]){ $mod["deliverAndRedirect"][0]=$attributes["exchange_deliverandredirect"]; }
859 if ($attributes["exchange_hidefromlists"]){ $mod["msExchHideFromAddressLists"][0]=$attributes["exchange_hidefromlists"]; }
860 if ($attributes["contact_email"]){ $mod["targetAddress"][0]=$attributes["contact_email"]; }
865 if ($attributes["firstname"] && $attributes["surname"]){
866 $mod["cn"][0]=$attributes["firstname"]." ".$attributes["surname"];
867 $mod["displayname"][0]=$attributes["firstname"]." ".$attributes["surname"];
868 $mod["name"][0]=$attributes["firstname"]." ".$attributes["surname"];