Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NMC-PHP-Framework
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NewMediaCenter
NMC-PHP-Framework
Commits
5ee0530e
Commit
5ee0530e
authored
Feb 22, 2008
by
Tim Steiner
Browse files
Options
Downloads
Patches
Plain Diff
Initial support for UNL's CAS Authentication
parent
fd20aa55
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
library/Nmc/Auth/Adapter/Cas.php
+1
-0
1 addition, 0 deletions
library/Nmc/Auth/Adapter/Cas.php
library/Nmc/Auth/Adapter/Ldap.php
+15
-12
15 additions, 12 deletions
library/Nmc/Auth/Adapter/Ldap.php
with
16 additions
and
12 deletions
library/Nmc/Auth/Adapter/Cas.php
+
1
−
0
View file @
5ee0530e
...
@@ -16,5 +16,6 @@ class Nmc_Auth_Adapter_Cas implements Zend_Auth_Adapter_Interface
...
@@ -16,5 +16,6 @@ class Nmc_Auth_Adapter_Cas implements Zend_Auth_Adapter_Interface
if
(
$loggedIn
)
{
if
(
$loggedIn
)
{
return
new
Zend_Auth_Result
(
true
,
phpCAS
::
getUser
());
return
new
Zend_Auth_Result
(
true
,
phpCAS
::
getUser
());
}
}
return
new
Zend_Auth_Result
(
false
,
null
,
array
(
'Not signed in to CAS.'
));
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
library/Nmc/Auth/Adapter/Ldap.php
+
15
−
12
View file @
5ee0530e
...
@@ -27,10 +27,13 @@ class Nmc_Auth_Adapter_Ldap implements Zend_Auth_Adapter_Interface
...
@@ -27,10 +27,13 @@ class Nmc_Auth_Adapter_Ldap implements Zend_Auth_Adapter_Interface
$userName
=
$this
->
_userName
;
$userName
=
$this
->
_userName
;
$password
=
$this
->
_password
;
$password
=
$this
->
_password
;
if
(
!
$userName
)
{
return
new
Zend_Auth_Result
(
false
,
null
,
array
(
'LDAP: No username specified.'
));
}
try
{
try
{
$this
->
_connection
->
bind
(
"uid=
$userName
,ou=people,dc=unl,dc=edu"
,
$password
);
$this
->
_connection
->
bind
(
"uid=
$userName
,ou=people,dc=unl,dc=edu"
,
$password
);
$filter
=
'uid='
.
$userName
;
$filter
=
'uid='
.
$user_name
;
$this
->
_connection
->
search
(
'ou=people,dc=unl,dc=edu'
,
$filter
);
$this
->
_connection
->
search
(
'ou=people,dc=unl,dc=edu'
,
$filter
);
}
catch
(
Nmc_Ldap_Exception
$e
)
{
}
catch
(
Nmc_Ldap_Exception
$e
)
{
if
(
$e
->
getCode
()
==
49
)
{
if
(
$e
->
getCode
()
==
49
)
{
...
...
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