Ldaprealm.properties:  more sources of userDN

WLS 5.1 sp 6
In order to perform authentication I use the ldap realm. To enable access
to persons of the Sales and Office department I have added following
line to the ldaprealm.properties files
weblogic.security.ldaprealm.userDN=o=company.com,ou=Sales
weblogic.security.ldaprealm.userDN=o=company.com,ou=Office
WLS just accepts the second line (Office) and ignores the first one.
What is the syntax to use more than one userDN source?
Thanx for help in advance,
Michael

currently this isn't possible to list off multiple points in the LDAP tree
to look. in a near-future version of LDAPRealm, we're moving to
searching every time, so this won't be a problem.
.paul
Michael Saringer wrote:
WLS 5.1 sp 6
In order to perform authentication I use the ldap realm. To enable access
to persons of the Sales and Office department I have added following
line to the ldaprealm.properties files
weblogic.security.ldaprealm.userDN=o=company.com,ou=Sales
weblogic.security.ldaprealm.userDN=o=company.com,ou=Office
WLS just accepts the second line (Office) and ignores the first one.
What is the syntax to use more than one userDN source?
Thanx for help in advance,
Michael

Similar Messages

  • Startup error: ldaprealm.properties (The system cannot find the file specified)

    Hello,
    I'm starting WebLogic from JBuilder 3.5; before using the LDAP realm
    everything worked fine.
    After adding the following entry to the weblogic.properties file
    weblogic.security.realmClass=weblogic.security.ldaprealm.LDAPRealm
    the WLS states following error message:
    java.io.FileNotFoundException: ldaprealm.properties (The system cannot
    find the file specified)
    The ldaprealm.properties file is located in the WL_HOME dir (same location
    as weblogic.properties)
    I've start WLS with -Duser.dir=c:\weblogic, but it didn't affect my problem.
    When starting WLS with startWebLogic.cmd, everything works fine but no
    practicalbe for me,
    because I've to start in form JBuilder in order to enable remote debugging.
    Thanx for your help in advance,
    Michael

    http://www.bea.com/support/askbea/wls/S-06632.shtml
    ldaprealm.properties has to be in %WinDir%\System32 to be picked up by a WLS 5.1 server run as a service and LDAPRealm enabled.
    Still getting interesting LDAP errors, but the file is being picked up on startup.

  • Error: ldaprealm.properties (The system cannot find the file specified)

    Hi,
    I'm getting the following error message when starting up WLS
    java.io.FileNotFoundException: ldaprealm.properties
    (The system cannot find the file specified)
    This seems to me as if ldaprealm.properties isn't in the
    proper place/dir.
    The docu tells me to put it to WL_HOME - and there
    it resides.
    I cannot start WLS with the startWebLogic.cmd file (which
    alway works fine), because I'm forced to do it via JBuilder.
    Maybe someone can tell me a property to change the
    startup dir (-Duser.dir=c:\weblogic doesn't work)
    thanx in advance,
    Michael

    http://www.bea.com/support/askbea/wls/S-06632.shtml
    ldaprealm.properties has to be in %WinDir%\System32 to be picked up by a WLS 5.1 server run as a service and LDAPRealm enabled.
    Still getting interesting LDAP errors, but the file is being picked up on startup.

  • Access log4j.properties outside source folder

    Hi,
    I have developed a standalone java application, for logging the application i have created a log4j.properties in the source folder.
    it is woring fine and the logs are created as specified in the properties file.
    Issue:
    i have created a jar which contains the complete source code and log4j.properties file.
    if i try to create a jar without log4j.properties since the properties file will change by customer frequantly, i need to keep the log4j.properties outside the source folder.
    but my jar is unable to access the log4j.properties when i try to run the appplication.
    Question:
    how do we access the log4j.properties from outside source folder?
    thanks,
    J R

    gimbal2 wrote:
    T.PD wrote:
    In addition what gimbal2 sad: Do you create a MANIFEST.MF file in your jar?
    If so you should add (or extend) the ClassPath entry to include the current directory ( *.* ) so you can have the log4j.properties file in the folder where you call your jar from:[...]This is very dangerous. It makes the path not relative to where the jar is, but to where you invoke the java command.The OP's request is to have the (log4j) properties file outside of the jar maybe for easier editing.
    Adding any known folder in the file system to the class path is the only way I know to achieve this (Do you know better?). Folliwing this you could try to guess paths to add hoping that they will exist on all Systems you will use and place the properties file(s) there. On the other hane the current working dir the java command is invoked in is perdictable. Usually it's the directory the jar itself is located...
    I agree that this solution can be dangerous and opens the possibility to access classes located in a valid package structure below current working dir . But if you add the ' *.* ' as the last entry in your classpath at least the classes from all your other jars are accessed first...
    bye
    TPD

  • More sources for learning about Aperture

    I need to decide if I should continue using Aperture or not (10 days left on my trail) and I would like to know what sources there is for learning more about Aperture. I've looked at the videos that are available at Apples sites but are there other sources that I could use?
    Yes, I know about the manual but I usually learn faster with examples.

    I would say that one of the best instruction for Aperture is Derrick Story and Scott Bourne at Lynda.com http://movielibrary.lynda.com . There is a cost of 25$ a month for Lynda.com but its all you can eat with no ads.I feel it was more then worth it and if there is know other training you can just quet. It will allow your to hit the ground running.
    Dual 2.5 G-5   Mac OS X (10.4.8)   MacBook Pro

  • Cannot edit folder properties more than once???

    If I edit a folder property so that the links opens in the same folder area, it gives me the following error if I try to edit the properties again.
    An Unhandled Exception has occurred. ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    And for the same folder I get the following error if I click to preview it while editing.
    Error: Call to utl_http failed (WWS-32136)
    ORA-1: User-Defined Exception (WWC-36000)
    If anyone has a workaround for these errors, it will be appreciated.
    -Viral

    Hi ell_ell_tee,
    I just checked it works fine for me. I used this page actually. Have you checked to see if it is just the particular website that you were looking at? It could be an isolated incident.
    You could also try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit. You should look at the [https://support.mozilla.org/en-US/kb/Troubleshooting-extensions-themes Extensions and Themes troubleshooting guide ] and the [[Troubleshooting plugins]] article as well.
    Hopefully this helps!

  • Bound properties listeners sources javabeans

    Hi all
    I am working on an assignment for college, trying to learn Java etc,
    Basically I need one object to react to events in another
    Code is as follows
    // Extra Panel
    package myPackage1;
    import java.awt.GridLayout;
    import java.beans.PropertyChangeEvent;
    import javax.swing.JPanel;
    public class ExtraPanel extends JPanel implements
    java.beans.PropertyChangeListener,
    java.io.Serializable
    private static final long serialVersionUID = 1L;
    public JPanel thisPanel;
    public JPanel ExtraPanelMethod()
    thisPanel = new JPanel();
    GridLayout grid = new GridLayout();
    grid.setColumns(1);
    grid.setHgap(10);
    grid.setRows(6);
    grid.setVgap(5);
    thisPanel.setLayout(grid);
    return thisPanel;
    public void propertyChange(PropertyChangeEvent evt)
    // The Slider Class
    package myPackage1;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.awt.GridLayout;
    import javax.swing.BorderFactory;
    import javax.swing.JFormattedTextField;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JSlider;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    import javax.swing.text.NumberFormatter;
    public class TheSliderClass extends JPanel implements ChangeListener
    private static final long serialVersionUID = 1L;
    //Add a formatted text field to supplement the slider.
    public JFormattedTextField textField,textField2;
    JFormattedTextField newValue = null;
    JFormattedTextField oldValue = null;
    public String publicSliderName = "";
    public int fps;
    //And here's the slider.
    public JSlider sliderParameterValue;
    JPanel labelAndTextField,allTogether;
    int TractiveEffort = 0;
    public JPanel TheSliderClassMethod(String sliderName, int minimumValue, int maximumValue)
    JPanel allTogether = new JPanel();
    Font font = new Font("palatino linotype regular", Font.BOLD, 12);
    int initialValue = ((minimumValue+maximumValue)/2);
    int tickMarkValue = (maximumValue-minimumValue);
    publicSliderName = sliderName;
    //Create the label.
    JLabel sliderLabel = new JLabel(sliderName,JLabel.CENTER);
    sliderLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
    sliderLabel.setFont(font);
    sliderLabel.setForeground(Color.BLUE);
    //Create the formatted text field and its formatter.
    java.text.NumberFormat numberFormat =
    java.text.NumberFormat.getIntegerInstance();
    NumberFormatter formatter = new NumberFormatter(numberFormat);
    formatter.setMinimum(new Integer(minimumValue));
    formatter.setMaximum(new Integer(maximumValue));
    textField = new JFormattedTextField(formatter);
    textField.setValue(new Integer(initialValue));
    textField.setColumns(3); //get some space
    textField.setEditable(false);
    textField.setForeground(Color.red);
    textField2 = new JFormattedTextField(formatter);
    textField2.setValue(new Integer(initialValue));
    textField2.setColumns(3); //get some space
    textField2.setEditable(false);
    textField2.setForeground(Color.red);
    //Create the slider.
    sliderParameterValue = new JSlider(JSlider.HORIZONTAL,
    minimumValue, maximumValue, initialValue);
    sliderParameterValue.addChangeListener(this);
    //Turn on labels at major tick marks.
    sliderParameterValue.setMajorTickSpacing(tickMarkValue);
    sliderParameterValue.setMinorTickSpacing(10);
    sliderParameterValue.setPaintTicks(true);
    sliderParameterValue.setPaintLabels(true);
    sliderParameterValue.setBorder(
    BorderFactory.createEmptyBorder(0,0,0,0));
    sliderParameterValue.setBackground(Color.cyan);
    //Create a subpanel for the label and text field.
    JPanel labelAndTextField = new JPanel(); //use FlowLayout
    labelAndTextField.setBackground(Color.cyan);
    labelAndTextField.add(sliderLabel);
    labelAndTextField.add(textField);
    //Put everything together.
    GridLayout gridThis = new GridLayout();
    gridThis.setColumns(1);
    gridThis.setRows(2);
    allTogether.setLayout(gridThis);
    allTogether.add(labelAndTextField);
    allTogether.add(sliderParameterValue);
    allTogether.setBorder(BorderFactory.createBevelBorder(1,Color.red,
    Color.red));
    return allTogether;
    /** Listen to the slider. */
    public void stateChanged(ChangeEvent e)
    JSlider source = (JSlider)e.getSource();
    fps = (int)source.getValue();
    textField.setText(String.valueOf(fps));
    textField2.setText(String.valueOf(fps));
    How do I get Extra Panel to React to the slider in the Slider Class being moved?
    Thanks all

    PropertyChangeListener listener = new ExtraPanel();
    Component component = new TheSliderClass();
    component.addPropertyChangeListener( listener );

  • How to load an infocube from more than one source system?

    HI all,
    Can u please tell me how to load an info cube from more than one source sytem?

    Hi,
    same confiig is required for one or more source system. (From Data source to update rule, obviously cube remains the same).
    Its the infopackage execution which loads the data from different source system.
    Regards,
    Nawanit

  • Error while creating jar from source folder

    Hi,
    i have source folder and i added log4j.properties
    i try to build for creating jar (sourcecode.jar) by ant build (build.xml)
    it is throwing error and saying that "package org.apache.log4j does not exist"
    i spend more time to resolve this error , but i could not find any solution.
    what is the error on this.. below the build.xml code which i try to build jar
    <project name="MyProject" default="dist" basedir=".">
        <description>
            simple example build file
        </description>
      <!-- set global properties for this build -->
      <property name="src" location="src"/>
      <property name="build" location="build"/>
      <property name="dist"  location="dist"/>
      <target name="init">
        <!-- Create the time stamp -->
        <tstamp/>
        <!-- Create the build directory structure used by compile -->
        <mkdir dir="${build}"/>
      </target>
         <path id="classpath">
                 <fileset dir="${src.dir}">
                 <include name="log4j-1.2.16.jar"/>
                 </fileset>
         </path>
         <target name="compile" depends="init"
            description="compile the source " >
        <!-- Compile the java code from ${src} into ${build} -->
        <javac srcdir="${src}" destdir="${build}"/>
      </target>
      <target name="dist" depends="compile"
            description="generate the distribution" >
        <!-- Create the distribution directory -->
        <mkdir dir="${dist}/lib"/>
        <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
        <jar jarfile="${dist}/lib/EscapeIncontra.jar" basedir="${build}"/>
      </target>
      <target name="clean"
            description="clean up" >
        <!-- Delete the ${build} and ${dist} directory trees -->
        <delete dir="${build}"/>
        <delete dir="${dist}"/>
      </target>
    </project>i am using log4j.properties inside source folder also added in eclipse class path..
    Thanks
    Rosina

    user13836688 wrote:
         <path id="classpath">
                 <fileset dir="${src.dir}">
                 <include name="log4j-1.2.16.jar"/>
                 </fileset>
         </path>
    maybe you ment<path id="classpath">
                 <fileset dir="${src.dir}">
                 </fileset>
                 <pathelenemt path="${your_lib_folder_path}/log4j-1.2.16.jar"/>
         </path>bye
    TPD

  • Processing Multiple Files for more than 100 Receive Location - File Size - 25 MB each file, file type DML

    Hi Everybody
    Please suggest.
    For one of our BizTalk interface, we have around 120 receive locations.  We are just moving (*.dml) files from the source to destination without doing any processing.  
    We receive lots of files in different receive locations and in few cases the file size will be around 25 MB and so while moving these large files, the CPU usage is varying between 10% to 90+% and the time consuming for this single huge file is around
    10 to 20 minutes.  This solution was already in place and was designed by the previous vendor for moving the files to their clients.  Each client has 2 receive locations and they have around 60 clients.  Is there any best solution for implementing
    this with in BizTalk or outside BizTalk? Please suggest.
    I am also looking for how to control the number of files which gets picked from the BizTalk receive location.  For example, If we have say 1000 files in receive location and we want to pick at a time only 50 files only (batch of 50) then is it possible?
    because currently it is picking all the files available in source location, and one of the process is dropping thousands of files in to the source location, so we want to control  the number of files getting picked (or even if we can control to pick the
    number of KBs).  Please guide us on how we can control the number of files.

    Hi Rajeev,
    25 MB per file, 1000 files. Certainly you got to revisit the reason for choosing BizTalk.
    “the time consuming for this single huge file is around 10 to 20 minutes”
     - This is a problem.
    You could consider other file transfer options like XCopy or RobotCopy etc if you want to transfer to another local/shared drive. Or you can consider using SSIS
    which does comes with many adapters to send to destination system depending on their destination transfer protocol.
    But in your case, you have some of the advantages that you get with BizTalk. For your scenario, you have more source systems (more Receive locations), with BizTalk
    it’s always easier to manage these configurations, you can easily enable and disable them when a need arise. You can easily configure tracking; configure host instances based on load etc. So you can consider following design for your requirement. This design
    would suit you well since you’re not processing the message and just pass it through from source to destination:
    Use a custom pipeline component in the Receive Locations which receives the large file.
    Stores the received file into disk and creates a small XML metadata message that contains the information about where the large file is stored.
    The small XML message is then published into the
    message box db
    instead of the large file. Let the metadata file also contain the same context properties as the received file.
    In the send port, use another custom pipeline component that process the metadata xml file, retrieve the location of the disk where the file is stored, access the file and send it to destination.
    Read the following article on this design..
    http://www.codeproject.com/Articles/180333/Transfer-Large-Files-using-BizTalk-Send-Side
    This way you don’t need to publish the whole message into message box DB which would considerably reduce the processing time and utilises host instance to process
    more files. This way you can still get the advantages of BizTalk and still process large files.
    And regarding your question of restricting the Receive location to handles the number of files from receives location. No it’s not possible.
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • LDAPRealm and Microsoft Site Server (LDAP)

    I have problem setting up the LDAPRealm in Weblogic Commerce 2.0.1 and
    Personalisation Server connecting to a Microsoft Site Server.
    The ldaprealm.properties file is as below:
    weblogic.security.ldaprealm.url=ldap://localhost:389
    weblogic.security.ldaprealm.principal=cn=Administrator
    weblogic.security.ldaprealm.credential=password
    weblogic.security.ldaprealm.ssl=false
    weblogic.security.ldaprealm.authentication=none
    weblogic.security.ldaprealm.userAuthentication=local
    weblogic.security.ldaprealm.version=2
    weblogic.security.ldaprealm.userDN=o=test, ou=Members
    weblogic.security.ldaprealm.userNameAttribute=cn
    weblogic.security.ldaprealm.userPasswordAttribute=userpassword
    weblogic.security.ldaprealm.userCommonNameAttribute=cn
    weblogic.security.ldaprealm.groupDN=o=test, ou=Groups
    weblogic.security.ldaprealm.groupNameAttribute=cn
    weblogic.security.ldaprealm.groupIsContext=true
    weblogic.security.ldaprealm.groupUsernameAttribute=cn
    The server runs and halts at the last line of log:
    Fri Jul 28 11:58:21 GMT 2000:<I> <WebLogicServer> Server loading from
    weblogic.class.path. EJB redeployment enabled.
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> acl size = 211, pos ttl =60,
    neg ttl = 10
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> auth size = 211, pos ttl =
    60, neg ttl = 10
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> group size = 17, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> perm size = 10000, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> user size = 10000, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getAclOwner("weblogic")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> rewriting ACL
    "weblogic.jdbc.connectionPool.commercePool"
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getPermission("reserve")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> perm: backup HAS reserve
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getPrincipal("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getGroup("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> getGroup("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> search("o=telewest, ou=Groups,
    cn=everyone", "cn", "*")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> lookup("o=telewest, ou=Groups,
    cn=everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> new JNDI context
    The server halted at that line. Can anyone explain that situation?
    We are sure that we could connect to the LDAP server since we have a JSP
    page connecting to the LDAP using the SUN's jndi-ldap driver. Would that be
    a LDAP version problem, if that is so, how could we set the
    "java.naming.ldap.version=2" environment variable as I have said in my JSP
    page.
    Thanks for answering.

    Yes, sorry by the mistake.
    "ramesh" <[email protected]> wrote:
    I think Johnny is trying to say : "If you change to SP9" or above...
    Try to get a copy of the ldaprealm.properties file from the unzipped
    SP8 and
    above. It is self explanatory from there. The current ldaprealm.properties
    which comes with WLS 5.1 and upto sp7 has been changed in SP8 and above.
    Yes my configuration is also same as his.
    Hope this helps.
    Ramesh
    "Johnny Valdez" <[email protected]> wrote in message
    news:3b44ebb3$[email protected]..
    I recommend you change your service pack to 9, because the 6 has someproblems
    with LDAP...
    if you change to sp6 you could use this
    ### Server type
    server.alias=microsoft
    ### Microsoft Site Server
    # This follows the default Microsoft Site Server (MSS) schema.
    microsoft.server.host=ldapserver.example.com
    microsoft.server.principal=cn=Administrator, ou=Members,o=ExampleMembershipDir
    # microsoft.server.credential=*secret*
    microsoft.user.dn=ou=Members, o=ExampleMembershipDir
    microsoft.user.filter=(&(cn=%u)(objectclass=member))
    microsoft.group.dn=ou=Groups, o=ExampleMembershipDir
    microsoft.group.filter=(&(cn=%g)(objectclass=mgroup))
    create a file ldaprealm.properties with this configuration and saveit
    into the
    Weblogic root directory.
    greetings..
    "Satya Ghattu" <[email protected]> wrote:
    Hello,
    I am trying to use an Microsoft site server as my LDAPRealm with weblogic
    5.1 sp6, but in vain. Is there anybody out there who configured microsoft
    site server with WLS sp6 and lesser? If yes, could you please post
    your
    configuaration properties?
    Thank you,
    -satya

  • LDAPRealm and Microsoft Site Server, server halting at start-up

    I have problem setting up the LDAPRealm in Weblogic Commerce 2.0.1 and
    Personalisation Server connecting to a Microsoft Site Server.
    The ldaprealm.properties file is as below:
    weblogic.security.ldaprealm.url=ldap://localhost:389
    weblogic.security.ldaprealm.principal=cn=Administrator
    weblogic.security.ldaprealm.credential=password
    weblogic.security.ldaprealm.ssl=false
    weblogic.security.ldaprealm.authentication=none
    weblogic.security.ldaprealm.userAuthentication=local
    weblogic.security.ldaprealm.version=2
    weblogic.security.ldaprealm.userDN=o=test, ou=Members
    weblogic.security.ldaprealm.userNameAttribute=cn
    weblogic.security.ldaprealm.userPasswordAttribute=userpassword
    weblogic.security.ldaprealm.userCommonNameAttribute=cn
    weblogic.security.ldaprealm.groupDN=o=test, ou=Groups
    weblogic.security.ldaprealm.groupNameAttribute=cn
    weblogic.security.ldaprealm.groupIsContext=true
    weblogic.security.ldaprealm.groupUsernameAttribute=cn
    The server runs and halts at the last line of log:
    Fri Jul 28 11:58:21 GMT 2000:<I> <WebLogicServer> Server loading from
    weblogic.class.path. EJB redeployment enabled.
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> acl size = 211, pos ttl =60,
    neg ttl = 10
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> auth size = 211, pos ttl =
    60, neg ttl = 10
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> group size = 17, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> perm size = 10000, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> user size = 10000, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getAclOwner("weblogic")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> rewriting ACL
    "weblogic.jdbc.connectionPool.commercePool"
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getPermission("reserve")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> perm: backup HAS reserve
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getPrincipal("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getGroup("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> getGroup("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> search("o=telewest, ou=Groups,
    cn=everyone", "cn", "*")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> lookup("o=telewest, ou=Groups,
    cn=everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> new JNDI context
    The server halted at that line. Can anyone explain that situation?
    We are sure that we could connect to the LDAP server since we have a JSP
    page connecting to the LDAP using the SUN's jndi-ldap driver. Would that be
    a LDAP version problem, if that is so, how could we set the
    "java.naming.ldap.version=2" environment variable as I have said in my JSP
    page.
    Thanks for answering.

    Yes, sorry by the mistake.
    "ramesh" <[email protected]> wrote:
    I think Johnny is trying to say : "If you change to SP9" or above...
    Try to get a copy of the ldaprealm.properties file from the unzipped
    SP8 and
    above. It is self explanatory from there. The current ldaprealm.properties
    which comes with WLS 5.1 and upto sp7 has been changed in SP8 and above.
    Yes my configuration is also same as his.
    Hope this helps.
    Ramesh
    "Johnny Valdez" <[email protected]> wrote in message
    news:3b44ebb3$[email protected]..
    I recommend you change your service pack to 9, because the 6 has someproblems
    with LDAP...
    if you change to sp6 you could use this
    ### Server type
    server.alias=microsoft
    ### Microsoft Site Server
    # This follows the default Microsoft Site Server (MSS) schema.
    microsoft.server.host=ldapserver.example.com
    microsoft.server.principal=cn=Administrator, ou=Members,o=ExampleMembershipDir
    # microsoft.server.credential=*secret*
    microsoft.user.dn=ou=Members, o=ExampleMembershipDir
    microsoft.user.filter=(&(cn=%u)(objectclass=member))
    microsoft.group.dn=ou=Groups, o=ExampleMembershipDir
    microsoft.group.filter=(&(cn=%g)(objectclass=mgroup))
    create a file ldaprealm.properties with this configuration and saveit
    into the
    Weblogic root directory.
    greetings..
    "Satya Ghattu" <[email protected]> wrote:
    Hello,
    I am trying to use an Microsoft site server as my LDAPRealm with weblogic
    5.1 sp6, but in vain. Is there anybody out there who configured microsoft
    site server with WLS sp6 and lesser? If yes, could you please post
    your
    configuaration properties?
    Thank you,
    -satya

  • Problem using JDBC (JNDI) DataSource and data-sources.xml w/ OC4J

    I have a JClient application developed in JDev X. It works fine when using a JDBC URL for the connection (which then writes the connection into the BC4J.xcfg files, one for each application module). However, I would like the app to retrieve the data source from the server's data-sources.xml file. However, when, on the configurations tab of the application module I set the connection type to JDBC DataSource, and give it the JNDI name, it does not work, either with the embedded OC4J or the stand-alone OC4J. Any suggestions???
    In the stand alone OC4J I verified that the data source exists (using java -jar admin.jar ormi://nemethzoltan3 admin welcome -application adatklinika -testDataSource -location jdbc/adatklinikaCoreDS) ... so the data source is defined in the data-sources.xml. Of course the error I get is JBO-30003.
    If I just try to "test" the data source in Jdeveloper (using the context menu of the app module, and setting it to use the adatklinikaCoreDS) I get a JNDI error: unable to lookup data source and at level 3 a "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial". I checked, the data source is defined under tools->embedded OC4J properties->data sources.
    If I try to run the main form, simply nothing happens.
    Please help!!!

    Ok, figured out why running from jdeveloper wasn't working: the embedded OC4J server wasn't started (start it by running an html page from your project or something...and make sure you don't have a stand-alone oc4j running). AND more importantly it didn't have the library "embedded oc4j client" library included (project properties -> profiles -> development -> libraries)...which is needed for whatever reason.
    Now to try and get it working with the stand-alone OC4J...

  • LDAPRealm with WLS 6.0 example?

    Hi,
    Since BEA does not provide an example, can anyone on this group suggest a simple
    experiment to try and get an LDAPRealm working with WLS 6.0?
    My situation: I have read-only access to a remote LDAP server, and I am trying
    to write a JSP page that will simply access the server and verify that a username
    specified is listed in the LDAP server. Can someone provide a sample code snippet
    to do this?
    Thanks in advance,
    Vasuki.

    Can anyone tell me the difference between the config.xml file and the ldaprealm.properties
    file? They seem to have a lot of the same configuration parameters..
    "Jon Wilmoth" <[email protected]> wrote:
    >
    >
    I have also used the RDBMS realm successfully in the past and am now
    =
    trying to get up to speed on the LDAP realm. The biggest thing that
    I'm =
    struggling with now is I don't know the expected schema structure for
    my =
    ldap db. It would be helpful if BEA could give us an example LDIF file.
    =
    =20
    Jon
    --=20
    Jon Wilmoth
    Software Architect
    eSage Group
    (206) 264-5675 (Voice & Fax)
    [email protected]
    http://www.esagegroup.com
    <[email protected]> wrote in message =
    news:[email protected]...
    Do you have the user "system" defined in your LDAP server? If so,
    =
    does if have admin or read/write permission on all objects?=20
    Jerrie=20
    =
    ==20I tried using your example. I do not get any error messages but my
    =
    server does
    not come up. It looks like it hangs trying to connect to the LDAP
    =
    server. Any
    suggestions for debugging? Thanks
    "Satya Ghattu" <[email protected]> wrote:
    Vasuki,
    here's an example of what you should have in your config.xml file.
    <Realm
    Name=3D"defaultRealm"
    FileRealm=3D"defaultFileRealm"
    CachingRealm=3D"defaultCachingRealm"
    />
    <CachingRealm
    Name=3D"defaultCachingRealm"
    BasicRealm=3D"myldaprealm"
    />
    <LDAPRealm
    Name=3D"myldaprealm"
    LDAPURL=3D"ldap://ldapserver:389"
    Principal=3D"uid=3Dadmin, ou=3DAdministrators, =ou=3DTopologyManagement,
    o=3DNetscapeRoot"
    Credential=3D"MyLDAPCredential"
    AuthProtocol=3D"simple"
    UserAuthentication=3D"local"
    UserDN=3D"o=3Dairius.com,ou=3DPeople"
    UserNameAttribute=3D"uid"
    UserPasswordAttribute=3D"userpassword"
    GroupDN=3D"o=3Dairius.com,ou=3DGroups"
    GroupNameAttribute=3D"cn"
    GroupIsContext=3D"false"
    GroupUsernameAttribute=3D"uniquemember"
    />
    let us know if you still come across with any problems...
    Thanks
    -satya
    Vasuki Seshadri <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    Since BEA does not provide an example, can anyone on this group
    =
    suggest
    a
    simple
    experiment to try and get an LDAPRealm working with WLS 6.0?
    My situation: I have read-only access to a remote LDAP server, andI am
    trying
    to write a JSP page that will simply access the server and verify
    =
    that
    a
    username
    specified is listed in the LDAP server. Can someone provide a =
    sample
    code
    snippet
    to do this?
    Thanks in advance,
    Vasuki.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV><FONT face=3DArial size=3D2>I have also used the RDBMS realm =
    successfully in=20
    the past and am now trying to get up to speed on the LDAP realm. 
    =
    The=20
    biggest thing that I'm struggling with now is I don't know the expected
    =
    schema=20
    structure for my ldap db.  It would be helpful if BEA could
    =
    give us an=20
    example LDIF file.  </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
    <DIV><FONT face=3DArial size=3D2>Jon<BR>--=20
    <BR>************************************************<BR>Jon =
    Wilmoth<BR>Software=20
    Architect<BR>eSage Group<BR>(206) 264-5675  (Voice & Fax)<BR><A
    =
    href=3D"mailto:[email protected]">[email protected]</A><BR><A=
    =20
    href=3D"http://www.esagegroup.com">http://www.esagegroup.com</A></FONT></=
    DIV>
    <BLOCKQUOTE=20
    style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
    BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV><<A=20
    =
    href=3D"mailto:[email protected]">[email protected]</A>&g=
    t;=20
    wrote in message <A=20
    =
    href=3D"news:[email protected]">news:[email protected]=
    a.com</A>...</DIV><BR><FONT=20
    face=3Dsans-serif size=3D1>Do you have the user "system" defined in
    =
    your LDAP=20
    server?  If so, does if have admin or read/write permission on
    =
    all=20
    objects?</FONT> <BR><BR><FONT face=3Dsans-serif size=3D1>Jerrie</FONT>
    =
    <BR><BR><FONT face=3Dsans-serif=20
    =
    size=3D1>>>>>>>>>>>>>>>>>=
    &=gt;>>>>>>>>>>>>>>>>>&g=
    t;>>>>>>>>>>>>>>>>>>=
    ;>>>>>>>>>>>>>>>>>>=
    </FONT>=20<BR><BR><FONT face=3D"Courier New" size=3D2>I tried using your =
    example.  I do=20
    not get any error messages but my server does<BR>not come up.  It
    =
    looks=20
    like it hangs trying to connect to the LDAP server. =
     Any<BR>suggestions=20
    for debugging?  Thanks<BR><BR>"Satya Ghattu"=20
    <[email protected]> =
    wrote:<BR>>Vasuki,<BR>>here's an=20
    example of what you should have in your config.xml=20
    file.<BR>><BR>><Realm<BR>> =
     Name=3D"defaultRealm"<BR>>=20
    =
     FileRealm=3D"defaultFileRealm"<BR>>CachingRealm=3D"defaultCachin=
    gRealm"<BR>>=20
    /><BR>><BR>> <CachingRealm<BR>>=20
     Name=3D"defaultCachingRealm"<BR>>=20
     BasicRealm=3D"myldaprealm"<BR>> /><BR>><BR>>=20
    <LDAPRealm<BR>>  Name=3D"myldaprealm"<BR>>=20
     LDAPURL=3D"ldap://ldapserver:389"<BR>> =
     Principal=3D"uid=3Dadmin,=20
    ou=3DAdministrators, =
    ou=3DTopologyManagement,<BR>>o=3DNetscapeRoot"<BR>>=20
     Credential=3D"MyLDAPCredential"<BR>>=20
     AuthProtocol=3D"simple"<BR>> =
     UserAuthentication=3D"local"<BR>>=20
     UserDN=3D"o=3Dairius.com,ou=3DPeople"<BR>>=20
     UserNameAttribute=3D"uid"<BR>>=20
     UserPasswordAttribute=3D"userpassword"<BR>>=20
     GroupDN=3D"o=3Dairius.com,ou=3DGroups"<BR>>=20
     GroupNameAttribute=3D"cn"<BR>> =
     GroupIsContext=3D"false"<BR>>=20
     GroupUsernameAttribute=3D"uniquemember"<BR>> =
    /><BR>><BR>>let=20
    us know if you still come across with any=20
    problems...<BR>>Thanks<BR>>-satya<BR>><BR>>Vasuki Seshadri
    =
    <[email protected]> wrote in=20
    =
    message<BR>>news:[email protected]...<BR>>><BR>>&=
    gt;=20
    Hi,<BR>>><BR>>> Since BEA does not provide an example,
    can =
    anyone=20
    on this group suggest<BR>>a<BR>>simple<BR>>> experiment
    to =
    try and=20
    get an LDAPRealm working with WLS 6.0?<BR>>><BR>>> My =
    situation: I=20
    have read-only access to a remote LDAP server, and<BR>>I=20
    am<BR>>trying<BR>>> to write a JSP page that will simply =
    access the=20
    server and verify that<BR>>a<BR>>username<BR>>> specified
    =
    is=20
    listed in the LDAP server. Can someone provide a=20
    sample<BR>>code<BR>>snippet<BR>>> to do=20
    this?<BR>>><BR>>> Thanks in advance,<BR>>>=20
    Vasuki.<BR><BR>><BR>><BR><BR></BLOCKQUOTE></FONT></BODY></HTML>

  • Problem with setting Source Level in Sun Studio 2

    I've got problem with setting Source Level to 1.5 in Sun Studio 2. When I try to set it to 1.5 in Project properties and click Ok everything seem to go well, but when I open Project Properties again Source Level is set to 1.4. I need this to work cause I started to lear Java recently and I want to use foreach loop.
    Please help

    I'm just citing an example using Date().
    In fact, whether I use DateFormat or Calendar, it shows the same result.
    When I set the date to 1 Jan 1950 0 hours 0 minutes 0 seconds,
    jdk1.4.2 will always return me 1 Jan 1950 0 hours 10 minutes 0 seconds.
    It works correctly under jdk1.3.1

Maybe you are looking for