shibboleth


shibboleth: resolving attributes based on multiple LDAP attributes


Using Shibboleth, is it possible to configure attribute-resolver.xml to set and release an attribute based on the existence of multiple LDAP attributes? For example, I want to release an "email" attribute to the service provider: if LDAP has an attribute and value for "email_2" then use that value ... otherwise use the value in LDAP attribute "email".
I got it hashed out using an embedded script ....
<resolver:AttributeDefinition id="setEmail" xsi:type="ad:Script" dependencyOnly="true">
<resolver:Dependency ref="myLDAP" />
<ad:Script><![CDATA[
importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);
setEmail = new BasicAttribute("setEmail");
if(typeof alt_email != "undefined" && alt_email !=null)
{
setEmail.getValues().add(alt_email.getValues().get(0));
}
else
{
setEmail.getValues().add(email.getValues().get(0));
}
]]></ad:Script>

Related Links

Shibboleth 3 IDP or SP setup with IP address
How to pass Sp entityId from Idp to Shibboleth Sp?
Web Login Service - Access Denied (Shibboleth IdP 3)
Shibboleth 2.5 on IIS - Handler invoked at an unconfigured location
Shibboleth Configuration with ADFS 3.0 at the IDP sever
OKTA integration issue with Shibboleth SP
Shibboleth header attributes not being sent to all pages
how to customize login page for shibboleth idp
got error 404 while installing shibboleth, unable to get idp/status
Is it possible to connect Shibboleth idp from localhost?
Error Message: No peer endpoint available to which to send SAML response
spring-security-saml, IdP is unable to encrypt assertion?
Shibboleth custom redirect after success login
Common Shibboleth SP for multiple domain application
Shibboleth opensaml::FatalProfileException
Shibboleth - Service Provider protect resource on different server

Categories

HOME
paypal
ajax
cil
pug
project-management
rotation
nuxeo
firebase-app-indexing
facebook-graph-api
jasmine
cpu-architecture
agile
h2
search-engine
flyway
filter
requirejs
android-viewpager
keystore
xamarin-studio
maxima
cosmicmind
react-leaflet
zoho
backpropagation
servicemix
source-maps
go-cd
nmf
jflex
tampermonkey
maximo
excel-2013
data-conversion
thinking-sphinx
entity-system
polymorphism
swiftcharts
rhomobile
honeysql
nlb
vsts-package-management
npm-publish
autocompletetextview
magiczoomplus
haskell-pipes
delphi-10.1-berlin
alchemy.js
tic-tac-toe
bayesian-networks
pdftk
ttcn
cppunit
python-idle
defold
pinvoke
rollback
cgcontext
pluck
jexl
master
vst
rstudio-server
cron-task
git-annex
faraday
dac
anti-cheat
magento-1.4
persistence.xml
enyo
mysqldumpslow
rad
fabric-twitter
futuretask
windowlistener
castle-windsor-3
cpu-cores
cpu-speed
omnifocus
dmp
iostream
dache
lumx
xenocode
visual-c++-2010-express
jquery-tabs
vertical-rhythm
execvp
database-permissions
awesomeprint
vertical-scrolling
sequelpro
socketstream
scrollto
z-machine
shared-objects
collect
open-graph-beta
external-assemblies
configurable
msf
ajaxpro

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App