-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Custom email body (#51) * get email body from ENV * read subject from env * html mail * replace special string with username and password * missing ; * more str_replace * utf8 in mail * typo * docs * fix var * count accounts * fix print * Add the ability to set the server path. Get directed to the appropriate module when you log in. * Fixes to allow overriding attribute labels properly * Fix server_path in various places, update to cookies use 'samesite', include boostrap and queryjs files so LUM can run without internet access. * Add support for consuming docker / kubernetes secrets passed as _FILE environment variables (#136) * mod: condense Dockerfile * add: _FILE feature add: list of sensitive env_vars * mod: sorted env_var list * add: complete current env_var list * fix: formatting * mod: revert Dockerfile to prev. version * mod: updated comment to be more descriptive mod: rename variables to be more descriptive * rem: list of env_var; no longer needed. mod: env_file_replace function ^ search for all <env_var>_FILE variables and replace ^ <env_var> if the file exists and is not empty mod: env_file_replace comment Co-authored-by: pyunramura <[email protected]> * Update the README with information on using _FILE * Change username regex variables * Named server certs, as suggested by @huzvar * Update LDAP filter method as suggested by @xgaia * Feature/http header username (#120) * Implement Remote Headers Auth * Hide Logout on Remote Sessions * Add Explanation for REMOTRE_HTTP_HEADERS_LOGIN settiing Co-authored-by: Damian Galli <[email protected]> * Updated Readme, fixed random number generation for ARM systems, fixed JS to generate the username * Fix issues #124 and #126 * Change badges to buttons for list counts * Don't secretly set displayName * Add Group Additional (#113) * Add doku Group additional. * Read Group additional configuration. * New group add Additional objectclasses * Allow for attributes that take multiple values. * Updated README * Formatting fixes, fix parsing params from account requests, initial code for the simple interface flag. * Add attribute fields for groups and allow user-defined attributes to be displayed. Move alert banner JS to a function. * Update entries with any missing additional objectclasses when updating entries. Update README to describe changes. Initial work to allow file uploads for attributes. * Functionality to upload binary files and display them in the form it's a JPEG. Added a new page to download existing binary content. * Bugfixes for compatibility with older osixia/openldap versions. Change SIMPLE_INTERFACE to SHOW_POSIX_ATTRIBUTES. * Update version number in README. Co-authored-by: Monsieur X <[email protected]> Co-authored-by: pyunramura <[email protected]> Co-authored-by: pyunramura <[email protected]> Co-authored-by: Damian Galli <[email protected]> Co-authored-by: Damian Galli <[email protected]> Co-authored-by: huzvar <[email protected]>
- Loading branch information
1 parent
1ae87b6
commit 57af7c4
Showing
15 changed files
with
1,313 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
set_include_path( ".:" . __DIR__ . "/../includes/"); | ||
include_once "web_functions.inc.php"; | ||
include_once "ldap_functions.inc.php"; | ||
include_once "module_functions.inc.php"; | ||
set_page_access("admin"); | ||
|
||
if (!isset($_GET['resource_identifier']) or !isset($_GET['attribute'])) { | ||
exit(0); | ||
} | ||
else { | ||
$this_resource=ldap_escape($_GET['resource_identifier'], "", LDAP_ESCAPE_FILTER); | ||
$this_attribute=ldap_escape($_GET['attribute'], "", LDAP_ESCAPE_FILTER); | ||
} | ||
|
||
|
||
$exploded = ldap_explode_dn($this_resource,0); | ||
$filter = $exploded[0]; | ||
$ldap_connection = open_ldap_connection(); | ||
$ldap_search_query="($filter)"; | ||
$ldap_search = ldap_search($ldap_connection, $this_resource, $ldap_search_query,array($this_attribute)); | ||
|
||
if ($ldap_search) { | ||
|
||
$records = ldap_get_entries($ldap_connection, $ldap_search); | ||
if ($records['count'] == 1) { | ||
$this_record = $records[0]; | ||
if (isset($this_record[$this_attribute][0])) { | ||
header("Content-Type: application/octet-stream"); | ||
header("Cache-Control: no-cache private"); | ||
header("Content-Transfer-Encoding: Binary"); | ||
header("Content-disposition: attachment; filename='${this_resource}.${this_attribute}'"); | ||
header("Content-Length: ". strlen($this_record[$this_attribute][0])); | ||
print $this_record[$this_attribute][0]; | ||
} | ||
} | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.