Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7645679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:00:04+00:00 2026-05-31T10:00:04+00:00

I have the following problem: a user can’t login to our webapp if the

  • 0

I have the following problem: a user can’t login to our webapp if the user’s Active Directory password contains a ‘&’.
I’ve debugged this on my local machine using a port forward to the problematic LDAP server and everything works correctly.
However, if I login with that password on the remote server, I get fail.
I’ve posted a dump of the ldap config below.
Also, we use simple text for the auth (!)
Any ideas will be welcome, because I’m fresh out of good ideas.

    Hashtable<String, String> environment = new Hashtable<String, String>();
        environment.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
        environment.put(Context.SECURITY_AUTHENTICATION, "simple");
        environment.put(Context.SECURITY_PRINCIPAL, domainBasedUsername);
        environment.put(Context.SECURITY_CREDENTIALS, password);
        environment.put(Context.PROVIDER_URL, getActiveDirectoryServerUrl())

isSynchronized: TRUE

supportedLDAPVersion: 3, 2

serverName: CN=ABCDC03,CN=Servers,CN=Foo-City,CN=Sites,CN=Configuration,DC=foo,DC=com

supportedSASLMechanisms: GSSAPI, GSS-SPNEGO, EXTERNAL, DIGEST-MD5

ldapServiceName: foo.com:abcdc03$@FOO.COM

namingContexts: DC=foo,DC=com, CN=Configuration,DC=foo,DC=com, CN=Schema,CN=Configuration,DC=foo,DC=com, DC=DomainDnsZones,DC=foo,DC=com, DC=ForestDnsZones,DC=foo,DC=com

domainControllerFunctionality: 3

supportedLDAPPolicies: MaxPoolThreads, MaxDatagramRecv, MaxReceiveBuffer, InitRecvTimeout, MaxConnections, MaxConnIdleTime, MaxPageSize, MaxQueryDuration, MaxTempTableSize, MaxResultSetSize, MaxNotificationPerConn, MaxValRange

forestFunctionality: 2

configurationNamingContext: CN=Configuration,DC=foo,DC=com

rootDomainNamingContext: DC=foo,DC=com

SchemaNamingContext: CN=Schema,CN=Configuration,DC=foo,DC=com

subschemaSubentry: CN=Aggregate,CN=Schema,CN=Configuration,DC=foo,DC=com

supportedControl: 1.2.840.113556.1.4.319, 1.2.840.113556.1.4.801, 1.2.840.113556.1.4.473, 1.2.840.113556.1.4.528, 1.2.840.113556.1.4.417, 1.2.840.113556.1.4.619, 1.2.840.113556.1.4.841, 1.2.840.113556.1.4.529, 1.2.840.113556.1.4.805, 1.2.840.113556.1.4.521, 1.2.840.113556.1.4.970, 1.2.840.113556.1.4.1338, 1.2.840.113556.1.4.474, 1.2.840.113556.1.4.1339, 1.2.840.113556.1.4.1340, 1.2.840.113556.1.4.1413, 2.16.840.1.113730.3.4.9, 2.16.840.1.113730.3.4.10, 1.2.840.113556.1.4.1504, 1.2.840.113556.1.4.1852, 1.2.840.113556.1.4.802, 1.2.840.113556.1.4.1907, 1.2.840.113556.1.4.1948, 1.2.840.113556.1.4.1974, 1.2.840.113556.1.4.1341, 1.2.840.113556.1.4.2026

highestCommittedUSN: 9122909

domainFunctionality: 2

dnsHostName: ABCDC03.foo.com

currentTime: 20120105081254.0Z

dsServiceName: CN=NTDS Settings,CN=ABCDC03,CN=Servers,CN=Foo-City,CN=Sites,CN=Configuration,DC=foo,DC=com

isGlobalCatalogReady: TRUE

defaultNamingContext: DC=foo,DC=com

supportedCapabilities: 1.2.840.113556.1.4.800, 1.2.840.113556.1.4.1670, 1.2.840.113556.1.4.1791, 1.2.840.113556.1.4.1935

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T10:00:06+00:00Added an answer on May 31, 2026 at 10:00 am

    I think the issue may be the actual passing of the password through the webapp. The password field may need sanitized as it contains an ampersand, which may be a special character at some point in your code (not sure what languages your different chunks of code may or may not be written in). An example of a similar issue I had, I wrote statements in Word to paste into Oracle, however I accidentally used TABs in Word, which broke everything in Oracle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following problem: I have an Activity where a user can start
i have the following problem : I'm using Jquery mobile , user can search
I've got the following problem: I have two tables: (simplified) +--------+ +-----------+ | User
Ive got the following problem. I have a model called user which has a
I have the following problem: there's a user, A , who has to execute
I have a 100% ajax webapp and I have the following problem. My site
I have the following code, and database. My intent is the end user can
I have the following problem: public Boolean Exists(String userName) { IRepository<User> = new UserRepository();
I have following problem: I have built a tabbar application with 4 tabs. I
I have following problem, Code: String a=Yeahh, I have no a idea what's happening

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.