LDAPUrl class doesn't handle ldaps://

I am using the ldapjdk.jar (version 4.06) to access an ldap directory
using SSL and "write referrals". I've found that when a referral
is thrown, the url that is returned from the slapd server is in the
form "ldaps://servername" . The LDAPUrl class (in ldapjdk.jar) cannot
handle an ldap url in this format, it throws a MalformedURLException.
In looking at the code for LDAPUrl, it only allows url's that start
with "ldap" and not "ldaps" . If I stick some code into LDAPUrl and
change the ldap url string from the form "ldaps://servername" to
"ldap://servername:636" , everything seems to work okay.
None of the RFC documents for LDAP url's mention "ldaps" as being
a valid format. The only place I seem to find "ldaps" being mentioned
is in the iPlanet documentation.
Can anyone shed some light on this? Is there a newer version of LDAPUrl
available that handles this? Does Netscape even support the ldapjdk.jar
file ?

Kevin,
I am sorry, but I do not know ldapjdk or the like. I wanted simply to make the few remarks:
A URL with ldap://servername tells 2 different things:
- this will be using the LDAP protocol.
- this will be listening under the default port 389.
A URL with ldaps://servername tells also 2 things:
- this will be using the LDAPS protocol, which means that the SSL will be activated
- this will be listening under the default port 636.
While indeed it seems that there is not RFC mentioning "LDAPS", I think that the one concerning it is the RFC2830: http://www.ietf.org/rfc/rfc2830.txt
Consequently, the 2 following URL are not equivalent:
- ldap://servername:636
- ldaps://servername
Then, the following document may be interesting for you:
http://www.linuxdoc.org/HOWTO/LDAP-Implementation-HOWTO/index.html
I hope this might help you.
Cheers / Damien.

Similar Messages

  • Class based error handling

    Hi evrybody,
    i'd like to implemt some own errorclasses, but i cand find anything about the namespace to use. Am i right that evry class based error handling must start with cx? So which namespace is for customoers?
    cu
      Rainer

    Hi Rainer,
    if you already have a regulation for class names, just replace CL by CX and apply them accordingly.
    For example, if your classes are named ZCL_... or YCL_..., your exception classes will be named ZCX... or YCX_..., respectively.
    See T100 message OO 145 for the details. Here is the German version:
    +Kurztext
    Klassenname &1 ist für den gewählten Klassentyp nicht zulässig
    Diagnose
    Namenskonvention für Klassen :
    Für eine persistente Klasse ist der Präfix 'CL_' bzw. Namensraum+Präfix 'CL_' ( z.B. 'ZCL' oder '/NAMESPACE/CL_' ) vorgeschrieben.
    Für eine Exceptionklasse ist der Präfix 'CX_' bzw. NamensraumPräfix 'CX_' ( z.B. 'ZCX' oder '/NAMESPACE/CX_' ) vorgeschrieben.
    Best regards,
    Thorsten Franz

  • Firefox doesn't handle chained deadkeys on Windows

    It seems that Firefox doesn't handle chained deadkeys as produced by for example this layout http://blogs.msdn.com/b/michkap/archive/2011/04/16/10154700.aspx . Correct characters are not produced as in contrast with them being produced in Windows explorer.

    I think it will be hard to get clear answers about custom keyboard layouts here...
    I did see a bug that sounds related: [https://bugzilla.mozilla.org/show_bug.cgi?id=791300 791300 – Dead-key diacritics non-functional in text forms and address bar] -- the last comment mentions a code comment that chaining is not supported.
    About the bug tracking system:
    * [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html Bugzilla Etiquette]
    * [https://bugzilla.mozilla.org/page.cgi?id=voting.html Voting]

  • Error 430 (Class doesn't support Automation)

    I 've created a script using VisualBasic to open the illustrator cs3. Its working fine with most of the systems. But in few machines, the script got struck with an "Error 430 (Class doesn't support Automation)". If i re-install the illustrator and then try, its working fine. Can anyone suggest me a solution for this issue with out re-install the illustrator again.
    Thanks in Advance

    if that's the problem is pretty easy to fix:
    add this on Form1_Load sub:
            Dim procs() As Process = Process.GetProcessesByName("Illustrator.exe")
            If procs.Length > 1 Then
                For i as Integer = 1 To procs.Length - 2
                    procs(i).Kill()
                Next
            End If
    .NET framework 2 is required for the above(or 1.1 can't remember for sure)
    hope it helps together with patrice's response.
    cheers;

  • HttpURLConnection doesn't handle htaccess redirect

    I wrote this code to check if there is redirect and i successed but it doesn't handle htaccess redirect
    I know htaccess redirect == 301 but here it give me 200 WHY
    I want to handle htaccess redirect any help ?
       URL link=null; int httpResponseCode=0;
        try {
            link = new URL("http://www.vbseo.com/forumdisplay.php?f=234");
            HttpURLConnection linkconnection=(HttpURLConnection)link.openConnection();
            httpResponseCode = linkconnection.getResponseCode();
        } catch (Exception e) {}
        System.out.println(httpResponseCode);

    It actually follows redirects automatically, that's why you get a 200 response. It is possible to tell it not to follow redirects, just have a look at the API documentation and you will see the method to call if you want that to happen.

  • I have Elements 10. It doesn't handle RAW. It also doesn't allow more than one Fine JPG to be downloaded at a time. Can this be fixed with a download, or am I stuck to upgrade to Elements 13?

    I have Elements 10. It doesn't handle RAW. It also doesn't allow more than one Fine JPG to be downloaded at a time. Can this be fixed with a download, or am I stuck to upgrade to Elements 13?

    philips69374220 a écrit:
    I have Elements 10. It doesn't handle RAW.
    Yes, it does.
    FAQ: Will Photoshop Elements work with my camera, or Why won't my raw files open?
    It can handle the raw files covered by the ACR 6.7 version.
    For newer cameras, you can use the free Adobe DNGconverter to batch convert a folder into the DNG raw format that PSE10 can read and edit.
    (see the link in the upper document)
    Fine JPG to be downloaded at a time.
    All versions of Elements can open many jpegs at the same time, and the organizer lets you import as many as you want?

  • Asset class doesn't appear in T.code AS01

    Hi
    I created Asset Class, and Screen layout with that asset class. But when I creat asset in T.code AS01, I click field "Asset Class", but that asset class doesn't appear. It notice following:
    "Asset class 213200 cannot be used in company code HDQC
    Message no. AA130
    Diagnosis
    When you create an asset, the system determines the chart of depreciation from the company code definition. In order for a chart of depreciation to be available for an asset class during asset maintenance, the chart of depreciation has to be entered for that asset class (Determine class valuation). Chart of depreciation HDQC that was determined is not entered for asset class 213200.
    System Response
    You cannot create any assets in your company code for this class.
    Procedure
    You can do one of the following:
    Use another asset class, for which chart of depreciation HDQC is defined.
    Maintain the asset class valuations for asset class 213200 in chart of depreciation HDQC. Chart of depreciation HDQC has to be specified in order for you to be able to maintain the valuation parameters of asset class 213200 for chart of depreciation HDQC"
    Please explain me as detailed as possible
    Thanks
    Ngocpt

    Thank you
    I understood my problem. When I determine depreciation area in Asset Class. It notice error:
    Contact your system administrator (table error)
    Message no. AA826
    Diagnosis
    Depreciation area 41 has not been defined in the chart of depreciation HDQC.
    Procedure
    Define the depreciation area using in FI-AA Customizing.
    Before I created depreciation area 41.After that I deleted depreciation area 41. So I can't determine depreciation area in Asset Class 213200
    You can help me to fix that error.
    Thanks
    Ngocpt

  • Enhance standard class with event handler method

    In trying to enhance a standard class with a new event handler class, I find that the ECC 6.0 EHP4 system does not appear to recognise the fact the method is an event handler method.  The specific example is a new method to handle the event CL_GUI_ALV_GRID->USER_COMMAND. 
    I notice that the flag called Active has not been ticked - see image below.  Perhaps this is the reason why the event handler is not being triggered.
    Note that there is an event handler for the same event in the standard class which obviously is executed as expected.  Any ideas on limitations in the system or I am missing a step?
    Thanks
    John

    Thank you for your replies.
    There is a bug in the ALV handler of a standard SAP class (when executed in ITS WebGUI) and I was hoping to create a custom event handler as an Enhancement to execute some custom code to sort of "handle the bug". 
    I agree - ideally it should be done in a Z class but that will not give me access to the object methods and attributes of the enhanced class.
    Cheers,
    John

  • Bug: RichTextEditor "Initialize" not classed as event handler

    I'm trying to load the RichTextEditor control in a popup window. Here's my code:
    var rte:RichTextEditor = new RichTextEditor();
    rte.width   =  600;
    rte.height  =  500;
    rte.title   =  'Edit Text';
    I need to add the initialize event handler so I can add a button to the toolbar (as per the example on the Adobe website).
    However, when I type:
    rte.initialize  =  "addSaveButton()";
    Flash Builder says this is invalid as "initialize" is actually a function and doesn't accept any parameters.
    Compare this with:
    <mx:RichTextEditor initialize="addSaveButton()"/>
    Flash Builder recongises "initialize" as an event handler and therefore accepts the addSaveButton() function.
    Can anyone else confirm whether this is a bug with the SDK or not? I can simply add the button outside of the RTE for now, but then I'd have to wrap the RTE in a separate panel to accomodate the button, which isn't ideal.
    Thanks in advance.

    Hi,
    this is how to add the event listener
    rte.addEventListener(FlexEvent.INITIALIZE,addSaveButton);
    David.

  • Class based exception handling

    Hi everyone....
    I am new to object oriented abap.
    I would like to know more about exception handling using classes.
    please provide some good material or links on the topic?
    Points will be rewarded.......

    hi,
    Download the PDF from here.
    http://www.esnips.com/doc/6d16a298-9227-4d32-acf1-e91164c89daf/3-ABAP-Objects(P283)
    Follow this link too for tutorials.
    http://www.****************/Tutorials/OOPS/MainPage.htm
    Hope this helps, Do reward.
    Edited by: Runal Singh on Mar 14, 2008 3:28 PM

  • Missing Class error from handler class - urgent question!

    Hi,
    I am getting an "Missing Class" error when running a web service. The web service was generated from a Java class via the "create J2EE web service" option.
    The web service has a JAX-RPC handler class added, which belongs to the same package as a logging class. The logging class is used to write to a file for debug purposes. A "missing class" error is being generated whenever I attempt to invoke the web service (via the enterprise manager test util), the error refers to the logging class which is used by the main handler class. The JAX-RPC handler works fine by itself, the error is only seen when I attempt to use the logging class.
    I have re-built, re-deployed from scratch again, but still get the same error! Am I missing something simple here?
    thanks for any advice

    Hello,
    I have posted something similar, but I am not sure how to get over this issue. I am not sure if this is a code issue, I have scanned both EJB 2.0 and 2.1 specifications, but nothing caught my eye.
    Here is the error I am getting starting this in JDeveloper 1013 :
    Apr 11, 2006 12:17:49 AM com.evermind.server.Application setConfig
    WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules: [current-workspace-app:CNSI-JDev-7_Exp-7_0:DbUtilWrapper] - Unable to load ejb-class com.my.common.database.ejb.DbUtilWrapperBean, see section 23.2 of the EJB 2.1 specificationjava.lang.ExceptionInInitializerError: java.lang.NullPointerException
    Here is the ejb-jar.xml :
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>DbUtilWrapper</display-name>
    <ejb-name>DbUtilWrapper</ejb-name>
    <home>com.my.common.database.ejb.DbUtilWrapperHome</home>
    <remote>com.my.common.database.ejb.DbUtilWrapper</remote>
    <local-home>com.my.common.database.ejb.DbUtilWrapperLocalHome</local-home>
    <local>com.my.common.database.ejb.DbUtilWrapperLocal</local>
    <ejb-class>com.my.common.database.ejb.DbUtilWrapperBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    I am not sure if this should be in the assembly-descriptor, in ejb-jar.xml or orion-ejb-jar.xml :
    <method-permission>
    <unchecked/>
    <method>
    <ejb-name>DBUtilWrapper</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    Any ideas ?
    Thanks

  • Calendar doesn't handle exceptions on recurring items

    There are several cases where exceptions are not handled for recurring items:
    1) If the Host makes an exception (room change / time change / cancellation) that is not reflected in the iPhone
    2) If a participant wishes to decline from one particular instance, it deletes the entire recurring event.
    Also, there is no indication that a reply is sent to the organizer (host) when you decline or accept a meeting.
    There may be other cases which aren't handled, but I've only been on ActiveSync / Exchange 2007 for less than a day now, and I already notice these lame differences from the features in sync-via-USB/iTunes

    The calendar app is woefully inadequate for anything but the most rudimentary scheduling. Having used DateBk6 on the Palm platform for years, I suddenly feel like I'm back in nursery school trying to maintain my calendar/schedule with an orange crayon.
    And Apple got so much right with the iPhone that this is just glaring in its deficiencies. I can only imagine this was a 'rush to get it included' situation. I certainly can't imagine that anyone at Apple would be satisfied with this application. It doesn't even duplicate the functionality of Apple's own iCal, let alone any better calendar program.
    It is disappointing inasmuch as I usually look to Apple to take the lead in putting out high-quality applications.

  • Generate SDO classes doesn't work in JDeveloper

    Hi,
    What I would like to do: I would like to call a Java service from a BPEL process.
    The way I do it is by encapsulating my java service in a stateless session EJB which I try to expose through an SDO interface. Like that, I expect to be able to use this service with the EJB adapter in BPEL.
    I have an issue with JDeveloper to generate my SDO interfaces.
    If I have 2 simple classes :
    <pre>public class User {  
    private String name;
    public void setName(String name) {
    this.name = name;
    public String getName() {
    return name;
    }</pre>
    and
    <pre>public class UserAccess {
    public User getUserById(int id) {
    return new User();
    }</pre>
    I use the Create Service Interface... feature on UserAccess, and I doesn't generate the class UserSDO... Why is that ? Can you help please ?
    Laurent

    Hi,
    As a general rule, whenever using an operator where the query window comes from a table rather than a constructor, try using the ordered hint and put the table that contains the query window (the second geometry in the operator) first in the from clause. You are right in that the table associated with the first geometry must be indexed. This query might be changed to:
    SELECT /*+ ordered */
    v.nom ENS_NOM, v.adresse_numero, v.adresse_rue,
    c.code_insee , c.nom COM_NOM , b.code_centre,
    MDSYS.SDO_NN_DISTANCE(1) DIST
    FROM TEMPGEOMDATA v, limadm_commune c, batsp_cis b
    WHERE v.code_insee = c.code_insee
    AND SDO_NN(b.geometrie, v.geometrie, 'sdo_num_res=1', 1) = 'TRUE' ;
    Hope this helps,
    Dan

  • Firefox 9 doesn't handle the css font stack properly

    The style body{font:13px/1.231 arial,helvetica,sans-serif;*font-size:small;*font:x-small} should cause the browser to work through the stack and use sans-serif if arial and helvetica are not available. This is how it worked in Firefox 8 and how it works in other browsers.
    With Firefox 9 if the first font is unavailable it just substitues one of it's own instead.
    If I remove arial and helvetica from the list then FF9 uses the system sans-serif as it should.
    I would paste in some sample code, but this forum doesn't seem to support code snippets.

    The css in the blogpost http://krakrjak.blogspot.com/2012/01/firefox-901-font-css-bug.html is wrong, and that is why this does not work in Firefox. To access a class you must use the class selector (a dot). For example: .p-inner p { }<br>
    You can go to Mozilla Developer Network to learn CSS.<br>
    https://developer.mozilla.org/en-US/learn/css<br>

  • Why the class can't handle the taglib correctly?

    Hi everyone!
    I have a jsp page.There have ��
    <%@ taglib uri="Simpletag.tld" prefix="lyo"%>
    <html>
    <head>
    <title>hello</title>
    </head>
    <body>
    <p>A Group Web Matrix</p><p>
    <font color=red><I>
    <lyo:simple/><I></font></p>
    <ul>
    <li>Java friend</li>
    <li>.NET friend</li>
    <li>CGI friend</li>
    </ul>
    I want to the web page display the infomation when a user click the ul<li>.But it doesn't do anything when I click the choice.My Java code is:
    ////////////////////////////Echo.java////////////////////////////////////
    public class Echo extends BodyTagSupport{
         public int doStartTag()throws JspException{
              String choice;
              JspWriter out=pageContext.getOut();
              ServletRequest request=pageContext.getRequest();
              choice=new String(request.getParameter("choice"));
              try{
                   out.println("<h4>");
                   out.println("You should choose");
                   out.println("</h4>");
                   out.println("<h3>");
              if(choice=="Jspbook")
              out.print("you choice Jsp book,right?");
              else if(choice=="Aspbook")
              out.print("You choice Asp book?Don't you certain?");
              else if(choice=="PHPbook")
              out.print("You Known ,YOu should... ...");
              else
              out.print("sorry!there is Nothing...");
              out.println("</h3>");
         }catch(IOException e){
              System.out.println(e.toString());
              return SKIP_BODY;
    Who can tell me why?Thank you!

    public class Echo extends TagSupport {
    // Since you're not putting anything in the body, you only need to
    // extend TagSupport.
    // Likewise, your *.tld should specify
    // <body-content>empty</body-content>
        public int doStartTag() throws JspException{
            String choice;
            try {
                JspWriter out = pageContext.getOut();
                ServletRequest request = pageContext.getRequest();
                if (request !=null) {
                    choice = request.getParameter("choice");
                    out.println("<h4>");
                    out.println("You should choose");
                    out.println("</h4>");
                    if  ("Jspbook".equals(choice)) {
                        out.print("<h3>You chose a JSP book.</h3>");
                    else if("Aspbook".equals(choice)) {
                        out.print("<h3>You chose an ASP book.</h3>");
                    else if("PHPbook".equals(choice)) {
                        out.print("<h3>You chose a PHP book.</h3>");
                    else {
                        out.print("<h3>Sorry! There is nothing...</h3>");
            } catch(Exception e) {
                System.out.println(e.toString());
            return SKIP_BODY;
        public int doEndTag() throws JspException {
            return EVAL_PAGE;
    }

Maybe you are looking for

  • Two iPhones to the same computer different accounts?

    We got a new Windows 7 computer and need to know how to sync both our iPhones to this computer. I used to sync my iPhone to our old computer and my wife synced to her laptop. I have been trying everything I have read on how to do this on the net for

  • My query is not executing properly after applying patches(bi.7

    iam working bi.7 support package 13 after applying patches my query is not executing properly in production my problem with FI queries the query is executing properly but ihav created newformula using formulavariable that fields are not getting data

  • SQL Loader/External Table multiple record delimiters

    Hi every one. I have a strange problem, I have an external csv file which i wish to deal with (external tables or sql loader). This csv is totally not organized in structure and it contains records that are mixed together, meaning that some records a

  • Spry MenuBar2 css Link not filling entire row

    I am not sure, but I swear I had this working earlier on. The subMenu links displayed properly in FF & IE but now the Link wraps around the text only in IE and shows the rest of the link row without the hover link. Has anybody got any clues on what t

  • Can I grant permission to write in specific attributes using security groups

    Hi I Created GPO that write the computer name in the one of the user attribute "comment attribute " when  he logged on then i went to OU and grant self delegate permissions to allow the users of that OU to write on "comment attribute but this did not