Article
The new PasswordFetch class offers the ability to retrieve passwords from eDirectory when they are not supplied via the original authentication Method. The workflow diagram shows how PasswordFetch sits in the architecture of the solution:
Environment
In this setup example, the following lists the environment configuration:
- SLES 11 (lnxwlgmulti01.directoryconcepts.co.nz - 192.168.10.9)
- eDirectory 8.8.6 (t=DCNZ)
- Universal Password Enabled
- Objects under container: o=IDENTITIES
- Apache running for office.directoryconcepts.co.nz with SSL enabled (signed by DCNZ)
- Windows Server 2008 R2 (w2k8.ad.directoryconcepts.co.nz - 192.168.10.11)
- Active Directory (dc=ad,dc=directoryconcepts,dc=co,dc=nz)
- Domain Controller Server Certificate signed by DCNZ for IDM purposes and AD LDAPS enablement
- Objects under container: ou=BASEDN,dc=ad,dc=directoryconcepts,dc=co,dc=nz
- Novell Access Manager 3.1.3-247
- Administration Console & Identity Provider on SLES 11 x64 (idp.ad.directoryconcepts.co.nz - 192.168.10.4)
- Linux Access Gateway (lag.ad.directoryconcepts.co.nz - 192.168.10.7)
- The LAG protects the iDP, so the Base URL is https://office.directoryconcepts.co.nz:443/nidp
- Windows 7 x64 SP1
- Active Directory Member
- Internet Explorer 9
- DCNZ Self Signed Certificate Authority imported into Computer Trusted Roots Store
- *.directoryconcepts.co.nz added to IE's Local Intranet sites
User Stores
Active Directory
Create the User for Kerberos (we will also use this user for AM3 Store Access, so give it Domain Admin membership).
The User Login Name must be HTTP/ followed by the Access Manager Base URL domain (i.e. HTTP/office.directoryconcepts.co.nz)
For this next screen, you will need to enable Advanced Features in MMC.
Now we need to export the Kerberos Key Tab file:
eDirectory
Create the test user in ou=ACTIVE,o=IDENTITIES and allow IDM to synchronise the user to Active Directory. This will result in:
- eDirectory Account: cn=bwalter,ou=ACTIVE,o=IDENTITIES
- Active Directory Account: CN=Ben Walter,OU=Users,OU=BASEDN,dc=ad,dc=directoryconcepts,dc=co,dc=nz
IDM will write back the DirXML-ADContext value of CN=Ben Walter,OU=Users,OU=BASEDN,dc=ad,dc=directoryconcepts,dc=co,dc=nz to the cn=bwalter,ou=ACTIVE,o=IDETNTIES object (we will use this attribute as part of the PasswordFetch class).
Access Manager iDP
First, we create the primary store which will be Active Directory.
Next, we need to create the eDirectory store for the PasswordFetch class to use.
Next, we create the Kerberos Class called "Kerberos". In the Properties, we add the following values to match with Active Directory:
The bcsLogin.conf looks like:
com.sun.security.jgss.accept {
com.sun.security.auth.module.Krb5LoginModule required
debug="true"
useTicketCache="true"
ticketCache="/opt/novell/java/jre/lib/security/spnegoTicket.cache"
doNotPrompt="true"
principal="HTTP/office.directoryconcepts.co.nz@AD.DIRECTORYCONCEPTS.CO.NZ"
useKeyTab="true"
keyTab="/opt/novell/java/jre/lib/security/nidpkey.keytab"
storeKey="true";
};
While here, we also create the PasswordFetch Class called "PasswordFetch". In the Properties, we add the following values:
So, when the Kerberos Token is received by the iDP from the client, it validates with Active Directory (based on userPrincipalName in the token - bwalter@AD.DIRECTORYCONCEPTS.CO.NZ), this returns the DN of the user object (CN=Ben Walter,OU=Users,OU=BASEDN,dc=ad,dc=directoryconcepts,dc=co,dc=nz). To find the equivalent user in eDirectory, we use this to search for them from the DirXML-ADContext value.
11:20:29 A122EB70 LDAP: (192.168.10.4:50259)(0x0002:0x63) Search request: base: "o=IDENTITIES" scope:2 dereference:3 sizelimit:0 timelimit:0 attrsonly:0 filter: "(&(objectClass=Person)(DirXML-ADContext=CN=Ben Walter,OU=Users,ou=BASEDN,dc=ad,dc=directoryconcepts,dc=co,dc=nz))" attribute: "GUID" attribute: "fullname"
For each Class, we create a Method:
The Kerberos Method uses the Active Directory Store.
The PasswordFetch Method uses the eDirectory Store.
The options to Overwrite User values means that the LDAP DN will be that of eDirectory, not Active Directory (should it be needed).
Now we create the Contract to be utilised:
Policies
Because we told the PasswordFetch Method to overwrite the user values, any policy should use the eDirectory values for LDAP. i.e.:
Internal/External Scenario
Consider the situation where your business has one Access Manager solution for both Internal and External resources. The Internal resources utilise the method described above for single sign on, but what about External Users? They have no Kerberos token to send through!
What we need to do is provide a "fallback" contract for External Users so they are prompted to authenticate when no Kerberos Token is received. First we configure the Kerberos Contract with an Authentication Level, etc
Then we configure our "fallback" contract, in this case the Secure Username/Password Form:
Then we disable the Authentication Cards for all other unused Contracts to make the Secure Username/Password Form the default:
The Catch! The iDP still needs an authentication header passed to the Kerberos Contract, even if its empty, otherwise it errors requiring authentication. To do this, the external clients must be configured like internal clients (i.e. setting Internet Explorer to enable Integrated Login and add the domain to the Intranet Sites, or setting the network.negotiate-auth.delegation-uris and network.negotiate-auth.trusted-uris in Firefox).
Alternate
As of version 3.1.4 of Novell Access Manager, new capabilities have been added to the Kerberos Class. These are documented.
Kerberos Method Properties Example:
- FALLBACK_AUTHCLASS: com.novell.nidp.authentication.local.ProtectedPasswordClass
- MainJSP: true
- JSP: custom_page
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
- Access Manager Single Sign-on to NetStorage
- GroupWise Filter for Tasks
- Create an ISO from your SLES DVD and add it as an installation source from the command line
- Configuring Outlook Web Access 2003 with Single Sign-on using Novell Access Manager
- Setting the Simple Password NMAS Method as the Default Login Method in iManager 2.7
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
To have policies that check
Submitted by ScorpionSting on 2 May 2011 - 1:28pm.
To have policies that check eDir values, you *MUST* enable "Overwrite Temporary User" and "Overwrite Real User" in the PFC Method, *AND* disable "Retain Previous Principal" in the PFC Class.
- Be the first to comment! To leave a comment you need to Login or Register
- Be the first to comment! To leave a comment you need to Login or Register
great article!
Submitted by kkyen on 27 July 2011 - 6:24am.
Is this applicable to NAM304? As i don't see the PasswordFetch class in there... Thx
- Be the first to comment! To leave a comment you need to Login or Register
A class developped by Bart
Submitted by TellierS on 27 July 2011 - 7:08am.
A class developped by Bart Andries exist for 3.0.4, I think.
- Be the first to comment! To leave a comment you need to Login or Register
Bart's one operates
Submitted by ScorpionSting on 27 July 2011 - 12:00pm.
Bart's one operates differently to the Novell one and doesn't contain some of its features such as Principal Replacement.
You do realise that, if you have any issues with your Access Manager environment, the first thing Novell will ask is what release you're running? They only offer decent support if you're running the current release, otherwise they'll just say "upgrade to current release and see if issue continues".
- Be the first to comment! To leave a comment you need to Login or Register
Authenticating internal users on the cloud using Kerberos/NAM
Submitted by mus75 on 3 August 2011 - 5:03am.
Hi there,
I'm using NAM to authenticate external users to access to some applications hosted on the cloud (sales force), for the internal users, when they want to access those apps, an additional authentication (besides windows (AD) authentication) is required.
How can I authorize internal users to access to those applications once they are logged in to the local domain without entering additional login/password using Kerberos (SSO) ?
thanks
- Be the first to comment! To leave a comment you need to Login or Register
Password Type
Submitted by kkyen on 27 September 2011 - 2:46am.
What if I'm going to setup the password fetch now and my existing eDirectory is without "Simple Password" or "Universal Password", can these users be fetch? Thanks.
- Be the first to comment! To leave a comment you need to Login or Register
Definitely not. Your
Submitted by ScorpionSting on 27 September 2011 - 10:54am.
Definitely not.
Your passwords are only held in RSA encryption which is irreversible.
- Be the first to comment! To leave a comment you need to Login or Register





















9