4 Replies Latest reply: Mar 8, 2013 1:32 AM by thodi RSS

    APEX LDAP appends LDAP server name to CN

    thodi
      Hello,

      we are trying to authenticate users via LDAP (AD) in an APEX 4 application. The authentication scheme has been set up with the corrent serve namen and port, I see the LDAP bind requests on the server. The DN string is
      cn=%LDAP_USER%,cn=User,cn= ...
      However, in the bind requests I see that APEX appends the configured LDAP server name to the cn, so instead of:
      cn=username,cn=User,cn=...
      it tries to bind with
      cn=username@server.domain,cn=User,cn=...
      The authentication fails. Is there a way to make APEX not append the server name?
        • 1. Re: APEX LDAP appends LDAP server name to CN
          thodi
          Anybody?
          • 2. Re: APEX LDAP appends LDAP server name to CN
            Patrick Wolf-Oracle
            Hi,

            are you sure that the user doesn't enter his e-mail address? Because we normally just use what has been entered by the user. Or maybe you have specified that logic in the "Edit Username LDAP function" attribute of your authentication. Which version of APEX are you using? Can you upload your app (or at least an app with your authentication) to apex.oracle.com so that we can have a look how your configuration looks like.

            Please also have a look at all those postings which deal with Microsoft Active Directory.

            Regards
            Patrick
            -----------
            My Blog: http://www.inside-oracle-apex.com
            APEX Plug-Ins: http://apex.oracle.com/plugins
            Twitter: http://www.twitter.com/patrickwolf
            • 3. Re: APEX LDAP appends LDAP server name to CN
              thodi
              Patrick Wolf wrote:
              are you sure that the user doesn't enter his e-mail address? Because we normally just use what has been entered by the user.
              Yes, I'm sure :-) I tested it myself.
              Or maybe you have specified that logic in the "Edit Username LDAP function" attribute of your authentication. Which version of APEX are you using? Can you upload your app (or at least an app with your authentication) to apex.oracle.com so that we can have a look how your configuration looks like.
              We're at version 4.2.0.00.27. I will look at the "Edit Username LDAP function" later. The developer is out of the office currently, I will check with him about uploading the app.
              Please also have a look at all those postings which deal with Microsoft Active Directory.
              I will.

              Thank you so far, I will get back to you!

              Edited by: thodi on Jan 14, 2013 4:02 PM
              • 4. Re: APEX LDAP appends LDAP server name to CN
                thodi
                Well, we don't know what happened, but the situation somehow resolved itself (or by poking around in the application). Everything works the way it's supposed to right now.