Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

WebLogic integration with Active Directory for authentication provider

Sandeep Kumar skMar 31 2019 — edited Sep 15 2020

I am configuring WebLogic 12c with Active Directory as a Provider and have few questions if someone has done a WebLogic integration with Active Directory.

For the WebLogic Provider configuration 1), 2), 3)

1) Host:          For the hostname of the Active Directory Domain Controller, can we put multiple hosts, comma separated? Since there are multiple domain controllers.

2) User DN:   Can we provide the base DN of the users in AD (like DN=Users, dc=example,dc=com). Is this top level DN allowed?  (Note, we tested with one user first and provided his particular DN. Since the users are spread across various OU we wanted to make sure authentication works fine for one user, which does work fine)

3) Group DN:  Do we require a special group in AD where all the users can be put in? And this group needs to be put in the Group info in the WebLogic configuration in the Provider settings?

For weblogic.xml configuration

4) One of the step is configuring weblogic.xml file. Here we have provided username of a particular user and his particular DN, for a test and authentication works fine with below settings. However these settings are for a particular user. What needs to be put in for "principal-name" so that all/other users can also login? Similarly what needs to be put in for "role-name"?

<wls:security-role-assignment>

    <wls:role-name>Valid Users</wls:role-name>

    <wls:principal-name>userabc</wls:principal-name>

</wls:security-role-assignment>

This post has been answered by User_886HI on Apr 1 2019
Jump to Answer

Comments

NickR2600-Oracle

Sounds like you might be interested in Java Regular Expressions (regex) and pattern matching.  I've found regular expressions useful for formatting and searching Strings and numbers. There is a tutorial from Oracle (https://docs.oracle.com/javase/tutorial/essential/regex/ ).  I've also had luck googling for regular expression examples, since there's so many tricks, options, characters to keep track of.

mNem
Answer

I am using something like the one below. I don't know if that is going to help in

I am interested in tidying up the output to do the following:

  1. Strings and value in two separate columns (???)

 

public void printDetails() {

      System.out.println(String.format("Account Owner: %s", accountOwner));

      System.out.println(String.format("Account Type: %s", accountType));

      DecimalFormat df = new DecimalFormat("$ #,##0.00");

      String formattedBal = df.format(balance);

      System.out.println(String.format("Balance for customer [%s]:  %s", accountOwner, formattedBal));

}

Marked as Answer by OTG-467455 · Sep 27 2020
1 - 2

Post Details

Added on Mar 31 2019
3 comments
400 views