started work on ldap qr code

This commit is contained in:
i am da real crt yes 2022-09-06 16:02:25 +02:00
parent fc4fa7a8fb
commit 6bb80551ea
1 changed files with 21 additions and 0 deletions

View File

@ -110,6 +110,27 @@
$xml .= "</Account>"; $xml .= "</Account>";
$xml .= "</AccountConfig>"; $xml .= "</AccountConfig>";
$ldapxml = "<?xml version='1.0' encoding='utf-8'?>";
$ldapxml .= "<LdapConfig version='1'>";
$ldapxml .= "<Server>".$_SESSION["ldap"]["qr_server"]["text"])."</Server>";
$ldapxml .= "<Port>".$_SESSION["ldap"]["qr_port"]["text"]."</Port>";
$ldapxml .= "<Path>".$_SESSION["ldap"]["qr_path"]["text"]."</Port>";
$ldapxml .= "<Name>".$_SESSION["ldap"]["qr_username"]["text"])."</Name>";
$ldapxml .= "<Secret>".$_SESSION["ldap"]["qr_password"]["text"]."</Secret>";
$ldapxml .= "<FilterNum>".$_SESSION["ldap"]["qr_filternum"]["text"]."</FilterNum>";
$ldapxml .= "<FilterName>".$_SESSION["ldap"]["qr_filtername"]["text"]."</FilterName>";
$ldapxml .= "<Version>".$_SESSION["ldap"]["qr_ldap_version"]["numeric"]."</Version>";
$ldapxml .= "<NamePro>".$_SESSION["ldap"]["qr_name_attribute"]["text"]."</NamePro>";
$ldapxml .= "<NumPro>".$_SESSION["ldap"]["qr_num_attribute"]["text"]."</NumPro>";
$ldapxml .= "<DisplayName>".$_SESSION["ldap"]["qr_display_name"]["text"]."</DisplayName>";
$ldapxml .= "</LdapConfig>"
} }
//yea i will have to go and recycle this aswell to make it generate the ldap code aswell //yea i will have to go and recycle this aswell to make it generate the ldap code aswell