Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NUIDLookup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNL Identity Management Applications and Utilities
NUIDLookup
Commits
f5a92f91
Commit
f5a92f91
authored
13 years ago
by
Brett Bieber
Browse files
Options
Downloads
Patches
Plain Diff
Add support for a list of authorized usernames
parent
622a1289
Branches
master
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.sample.php
+2
-1
2 additions, 1 deletion
config.sample.php
index.php
+6
-0
6 additions, 0 deletions
index.php
with
8 additions
and
1 deletion
config.sample.php
+
2
−
1
View file @
f5a92f91
...
@@ -4,6 +4,7 @@ $options = array();
...
@@ -4,6 +4,7 @@ $options = array();
$options
[
'bind_dn'
]
=
'uid=youruseridhere,ou=service,dc=unl,dc=edu'
;
$options
[
'bind_dn'
]
=
'uid=youruseridhere,ou=service,dc=unl,dc=edu'
;
$options
[
'bind_password'
]
=
'passwordhere'
;
$options
[
'bind_password'
]
=
'passwordhere'
;
$authorized_users
=
array
(
'hhusker0'
);
function
autoload
(
$class
)
function
autoload
(
$class
)
{
{
...
...
This diff is collapsed.
Click to expand it.
index.php
+
6
−
0
View file @
f5a92f91
...
@@ -14,6 +14,12 @@ if (!$auth->isLoggedIn()) {
...
@@ -14,6 +14,12 @@ if (!$auth->isLoggedIn()) {
exit
;
exit
;
}
}
if
(
empty
(
$authorized_users
)
||
!
in_array
(
$auth
->
getUser
(),
$authorized_users
))
{
echo
'You are not authorized to use this tool. Contact the UNL Identity Management Team.'
;
exit
;
}
echo
'<h1>Upload a file containing NUIDs or My.UNL Usernames</h1>
echo
'<h1>Upload a file containing NUIDs or My.UNL Usernames</h1>
<form action="" method="post" enctype="multipart/form-data">
<form action="" method="post" enctype="multipart/form-data">
File <input type="file" name="userfile" />
File <input type="file" name="userfile" />
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment