projects
/
BackupPC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
18add9f
)
Active Directory DOMAIN\login removal
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 26 Jan 2011 11:42:14 +0000
(11:42 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 26 Jan 2011 11:42:14 +0000
(11:42 +0000)
lib/BackupPC/CGI/Lib.pm
patch
|
blob
|
history
diff --git
a/lib/BackupPC/CGI/Lib.pm
b/lib/BackupPC/CGI/Lib.pm
index
a1d06aa
..
a1abccf
100644
(file)
--- a/
lib/BackupPC/CGI/Lib.pm
+++ b/
lib/BackupPC/CGI/Lib.pm
@@
-134,6
+134,11
@@
sub NewRequest
#
$User = $1 if ( $User =~ /uid=([^,]+)/i || $User =~ /(.*)/ );
+ # strip Active directory domain in front of user
+ $User = $1 if ( $User =~ /\w+\\(\w+)/ );
+use Data::Dump qw(dump);
+warn "XX User: $User",dump( \%ENV );
+
#
# Clean up %ENV for taint checking
#