I am trying to do an NMAS Challenge Response authentication. It works in
all cases except one - if the user's parent OU has a comma in the name,
my code does get the DN with the comma escaped and passes it to NMAS
with this line:

My application shows that I am passing in as entryDN:

cn=vjones@sw.swk,o=CADD Edge\,
Inc.,dc=VAR,ou=Users,o=Solidworks,dc=com

nmasLoginMonitor.startLogin(entryDN, "Challenge Response", ldapHost,
ldapPort, ssl, callbackHandler);

But the trace shows

16:41:39 D78 NMAS: 62: Create NMAS Session

16:41:39 D78 NMAS: 62: Pregathered information NMAS_AID = 1 value
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:39 D78 NMAS: 62: Pregathered information NMAS_AID = 11 value
Challenge Response

16:41:39 D78 NMAS: 62: NMAS Client supplied user DN vjones@sw\.swk.CADD
Edge\.VAR.Users.Solidworks.com

16:41:39 D78 NMAS: ERROR: -16049 Failed to create context for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:39 D78 NMAS: 62: ERROR: -16049 Creating local session for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com, attempting remote
session

16:41:39 D78 NMAS: 62: Destroy NMAS Session

16:41:39 D78 NMAS: 62: ERROR: -16049 Failed to started login refresh
session

16:41:39 D78 NMAS: ERROR: -16049 SASL_DoMechanism: NMAS_MessageHandler

16:41:39 1538 NMAS: 63: Destroy NMAS Session for reuse

16:41:39 1538 NMAS: 63: Create NMAS Session

16:41:39 1538 NMAS: 63: Pregathered information NMAS_AID = 1 value
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:39 1538 NMAS: 63: Pregathered information NMAS_AID = 11 value
Challenge Response

16:41:39 1538 NMAS: 63: NMAS Client supplied user DN
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:39 1538 NMAS: ERROR: -16049 Failed to create context for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:39 1538 NMAS: 63: ERROR: -16049 Creating local session for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com, attempting remote
session

16:41:39 1538 NMAS: 63: Destroy NMAS Session

16:41:39 1538 NMAS: 63: ERROR: -16049 Failed to started login refresh
session

16:41:39 1538 NMAS: ERROR: -16049 SASL_DoMechanism:
NMAS_MessageHandler

16:41:40 1114 NMAS: 0: Destroy NMAS Session for reuse

16:41:40 1114 NMAS: 0: Create NMAS Session

16:41:40 1114 NMAS: 0: Pregathered information NMAS_AID = 1 value
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:40 1114 NMAS: 0: Pregathered information NMAS_AID = 11 value
Challenge Response

16:41:40 1114 NMAS: 0: NMAS Client supplied user DN vjones@sw\.swk.CADD
Edge\.VAR.Users.Solidworks.com

16:41:40 1114 NMAS: ERROR: -16049 Failed to create context for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:40 1114 NMAS: 0: ERROR: -16049 Creating local session for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com, attempting remote
session

16:41:40 1114 NMAS: 0: Destroy NMAS Session

16:41:40 1114 NMAS: 0: ERROR: -16049 Failed to started login refresh
session

16:41:40 1114 NMAS: ERROR: -16049 SASL_DoMechanism:
NMAS_MessageHandler

16:41:41 1344 NMAS: 1: Destroy NMAS Session for reuse

16:41:41 1344 NMAS: 1: Create NMAS Session

16:41:41 1344 NMAS: 1: Pregathered information NMAS_AID = 1 value
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:41 1344 NMAS: 1: Pregathered information NMAS_AID = 11 value
Challenge Response

16:41:41 1344 NMAS: 1: NMAS Client supplied user DN vjones@sw\.swk.CADD
Edge\.VAR.Users.Solidworks.com

16:41:41 1344 NMAS: ERROR: -16049 Failed to create context for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:41 1344 NMAS: 1: ERROR: -16049 Creating local session for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com, attempting remote
session

16:41:41 1344 NMAS: 1: Destroy NMAS Session

16:41:41 1344 NMAS: 1: ERROR: -16049 Failed to started login refresh
session

16:41:41 1344 NMAS: ERROR: -16049 SASL_DoMechanism:
NMAS_MessageHandler

16:41:41 9BC NMAS: 2: Destroy NMAS Session for reuse

16:41:41 9BC NMAS: 2: Create NMAS Session

16:41:41 9BC NMAS: 2: Pregathered information NMAS_AID = 1 value
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:41 9BC NMAS: 2: Pregathered information NMAS_AID = 11 value
Challenge Response

16:41:41 9BC NMAS: 2: NMAS Client supplied user DN vjones@sw\.swk.CADD
Edge\.VAR.Users.Solidworks.com

16:41:41 9BC NMAS: ERROR: -16049 Failed to create context for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:41 9BC NMAS: 2: ERROR: -16049 Creating local session for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com, attempting remote
session

16:41:41 9BC NMAS: 2: Destroy NMAS Session

Thursday, February 25, 2010

16:41:41 9BC NMAS: 2: ERROR: -16049 Failed to started login refresh
session

16:41:41 9BC NMAS: ERROR: -16049 SASL_DoMechanism: NMAS_MessageHandler

16:41:42 558 NMAS: 3: Destroy NMAS Session for reuse

16:41:42 558 NMAS: 3: Create NMAS Session

16:41:42 558 NMAS: 3: Pregathered information NMAS_AID = 1 value
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:42 558 NMAS: 3: Pregathered information NMAS_AID = 11 value
Challenge Response

16:41:42 558 NMAS: 3: NMAS Client supplied user DN vjones@sw\.swk.CADD
Edge\.VAR.Users.Solidworks.com

16:41:42 558 NMAS: ERROR: -16049 Failed to create context for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:42 558 NMAS: 3: ERROR: -16049 Creating local session for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com, attempting remote
session

16:41:42 558 NMAS: 3: Destroy NMAS Session

16:41:42 558 NMAS: 3: ERROR: -16049 Failed to started login refresh
session

16:41:42 558 NMAS: ERROR: -16049 SASL_DoMechanism: NMAS_MessageHandler

16:41:43 1468 NMAS: 4: Destroy NMAS Session for reuse

16:41:43 1468 NMAS: 4: Create NMAS Session

16:41:43 1468 NMAS: 4: Pregathered information NMAS_AID = 1 value
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:43 1468 NMAS: 4: Pregathered information NMAS_AID = 11 value
Challenge Response

16:41:43 1468 NMAS: 4: NMAS Client supplied user DN vjones@sw\.swk.CADD
Edge\.VAR.Users.Solidworks.com

16:41:43 1468 NMAS: ERROR: -16049 Failed to create context for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com

16:41:43 1468 NMAS: 4: ERROR: -16049 Creating local session for
vjones@sw\.swk.CADD Edge\.VAR.Users.Solidworks.com, attempting remote
session

16:41:43 1468 NMAS: 4: Destroy NMAS Session

16:41:43 1468 NMAS: 4: ERROR: -16049 Failed to started login refresh
session

16:41:43 1468 NMAS: ERROR: -16049 SASL_DoMechanism: NMAS_MessageHandler


--
rrawson
------------------------------------------------------------------------
rrawson's Profile: http://forums.novell.com/member.php?userid=4898
View this thread: http://forums.novell.com/showthread.php?t=403072