ADAM, LDAPContext Container Name with Forward Slash

Hi,
I am having trouble writing some Java code, which will create a container/folder in ADAM, where the container name and distinughed name contain a forward slash.
e.g.
cn=test/test
dn=CN=test/test,CN=TestStore,DC=MyCompany,DC=COM
LdapContext _ctx = getNewContext(valid_userName, valid_userName, valid_userName);
  // uses InitialLdapContext under the hood
String containerDN = "dn=CN=test/test,CN=TestStore,DC=MyCompany,DC=COM"
_ctx.createSubcontext(containerDN, attrs); // assume attrs is valid javax.naming.directory.AttributesI am struggling to escpae the forward slash from the Java String object, and yet allow the InitialLdapContext to create the container with the name.
From the ADAM Adsi Edit application, I can create folders with forward slashes, so I presume the process can be done from code as well.
Many thanks in advance ...

Create a Name rather than passing a String.

Similar Messages

  • Folders with forward slashes in the name not appearing in Mail.app Exchange

    Has anybody else seen this? For folders with forward slashes in the name, such as "Meetings/Events", the folder shows up in Outlook Web Access and over Exchange in Entourage 2008, but not Exchange over IMAP with Mail.app in Snow Leopard. The folder shows up once I remove the forward slashes, such as "Meetings Events" or "Meetings-Events" or "Meetings and Events".
    Is this a known issue, and is there a fix besides renaming the folders?

    In Unix the forward slash is an illegal character for a filename. In general you should avoid using it as the forward slash is used in path names such as /Folder/File. Avoid using the colon as well because it's commonly used as part of a disk identifier in OS X.
    This is not any different than avoiding the backslash in Windows filenames.

  • File Sharing - Shared folder with forward slash in name

    I have a shared folder that has a forward slash in the name:   Test/Folder
    I can't remove it.
    Any suggestions on how to delete this from the File Sharing?

    Try this:
    sudo sharing -r name
    where name is the name of the sharepoint you want to delete.

  • Problem importing a CSV file with forward slashes in a column

    I have an Excel csv file of a product database (contains about 6500 products) that contains product codes with forward slahes such as 499/1, 499/3, 499/5.
    These are different sizes of a product and as such have different prices etc.
    When I import the file into Numbers these numbers appear as 499, 166 1/3, and 99 4/5 respectively.
    What seems to be happening is that Numbers is interpreting the forward slash (/) as a divide by command and subsequently performing a calculation on that number on import and hence totally changing the value of the cell so that it is impossible to look up the price related to a product as the product code no longer exists.
    Excel can import these files with no problems, why can't Numbers treat each cell as text and leave it alone on import.
    Is there any way round this or do I have to revert to using Excel for the import of csv files.
    Thanks
    Steve

    I know I'm a bit(!) late (a year) coming to this party, but there is a simple solution, that worked for me, enclose the field in double quotes, and add a single quote before the number:
    Instead of
    499/1,"Super Widget 3",12.34
    do
    "'499/1","Super Widget 3",12.34
    In fact the single (unclosed) quote without double-quotes works as well:
    '499/1,"Super Widget 3",12.34
    I've always found it better to enclose strings with double quotes. This works on loading the file into Mac Numbers and should work with Excel too if that helps. It opens with OpenOffice 4 on the Mac too - if you select "comma" in the "Separated by" checkbox
    I can't remember where I picked this info up....
    Hope this helps someone, albeit late.
    Andy

  • Applescript: How to reference to a filename with forward slash character?

    Hi,
    I have this script line:
    do shell script "lpadmin -p CIN-East-Copier -E -v lpd://192.168.51.78 -P '/Library/Printers/PPDs/Contents/Resources/LANIER MP C5501/LD655C'"
    The filename is "LANIER MP C5501/LD655C", the forward slash in the name is a character, not a folder structure.
    The script above works perfectly for drivers without the forward character.  Can anyone help me how to make it work?  I tried replacing the forward slash with URL encoded character, changing the structure to colon delimited (i.e. Macintosh HD:Library:Printers....etc), none work.
    Thanks!

    Since the / is the standard directory delimiter, it is not usually valid in a filename. It's extremely unusual to find such a character in a filename. However, all is not lost... there is a trick.
    Since the standard Mac OS paths used colon-delimited paths, and UNIX uses slash-delimited, there is a kind of hybrid solution... you can use the colon in the shell and it interprets as a slash, e.g.:
    do shell script "lpadmin -p CIN-East-Copier -E -v lpd://192.168.51.78 -P '/Library/Printers/PPDs/Contents/Resources/LANIER MP C5501:LD655C'"
    I haven't tried it, but you might need to escape (with a backslash) the colon:
    do shell script "lpadmin -p CIN-East-Copier -E -v lpd://192.168.51.78 -P '/Library/Printers/PPDs/Contents/Resources/LANIER MP C5501\\:LD655C'"

  • How pass a parameter with forward slash to plsql script

    Hi,
    I am trying pass a parameter to plsql script from command line using sqlplus, and the parameter is a file directory and has '/'. Seems the system couldn't recognize the value.
    here is my code in DECLARE:
    l_FileDir VARCHAR2(200) := &&FileDir ;
    I pass value '/usr/tmp' (with the single quote in the string)
    Can someone tell me how I do it?
    Thanks,
    Kate
    Edited by: user12100435 on Feb 25, 2010 8:31 AM

    user12100435 wrote:
    I think you are right. The issue is not file-separator character issue. because the exact same script run in another envoironment. And it's not file directory or permission issue because if I use hardcoded value, the code works fine.
    The error message is invalid File directory.
    Here is the related part of the code.
    -- open file handler
    IF UTL_FILE.IS_OPEN(l_FileHandler) THEN
    UTL_FILE.FCLOSE(l_FileHandler);
    ELSE
    l_FileHandler := UTL_FILE.FOPEN ( location => l_FileDir,
    filename => l_FileName,
    open_mode => 'W',
    max_linesize => 32767 );
    END IF;Ok, based on your input so far, I have cooked up a simple testcase.
    Make sure you are doing something similar to this -
    test@XE>
    test@XE> -- show the contents of the anonymous PL/SQL script
    test@XE> -- You are probably passing two parameters - the file location and the file name
    test@XE> --
    test@XE> ! cat test5.sql
    DECLARE
      l_FileHandler UTL_FILE.FILE_TYPE;
      l_FileDir     VARCHAR2(200) := '&1' ; 
      l_FileName    VARCHAR2(200) := '&2' ; 
    BEGIN
      -- open file handler
      IF UTL_FILE.IS_OPEN(l_FileHandler) THEN
        UTL_FILE.FCLOSE(l_FileHandler);
      ELSE
        l_FileHandler := UTL_FILE.FOPEN ( location => l_FileDir,
                                          filename => l_FileName,
                                          open_mode => 'W',
                                          max_linesize => 32767 );
        UTL_FILE.PUT_LINE(file => l_FileHandler, buffer => 'Hello, World!');
        UTL_FILE.FCLOSE(file => l_FileHandler);
      END IF;
    END;
    test@XE>
    test@XE> -- execute it
    test@XE> @test5.sql '/usr/tmp' 'first.txt'
    old   3:   l_FileDir     VARCHAR2(200) := '&1' ;
    new   3:   l_FileDir     VARCHAR2(200) := '/usr/tmp' ;
    old   4:   l_FileName    VARCHAR2(200) := '&2' ;
    new   4:   l_FileName    VARCHAR2(200) := 'first.txt' ;
    DECLARE
    ERROR at line 1:
    ORA-29280: invalid directory path
    ORA-06512: at "SYS.UTL_FILE", line 33
    ORA-06512: at "SYS.UTL_FILE", line 436
    ORA-06512: at line 10
    test@XE>
    test@XE> -- Create a directory object that points to "/usr/tmp"
    test@XE> create directory log_dir as '/usr/tmp';
    Directory created.
    test@XE>
    test@XE> -- now invoke the script
    test@XE> -- Note - I pass the value "LOG_DIR" in uppercase. That's the name of my directory object.
    test@XE> --
    test@XE> @test5.sql 'LOG_DIR' 'first.txt'
    old   3:   l_FileDir     VARCHAR2(200) := '&1' ;
    new   3:   l_FileDir     VARCHAR2(200) := 'LOG_DIR' ;
    old   4:   l_FileName    VARCHAR2(200) := '&2' ;
    new   4:   l_FileName    VARCHAR2(200) := 'first.txt' ;
    PL/SQL procedure successfully completed.
    test@XE>
    test@XE> -- Since my Oracle client is on the same machine as the Oracle server, I can check
    test@XE> -- this file "/usr/tmp/first.txt" quite easily
    test@XE>
    test@XE> ! cat /usr/tmp/first.txt
    Hello, World!
    test@XE>
    test@XE> isotope

  • Cannot turn off auto correction of forward slash after character "o" (Ø)

    Hi There:
    I have a strange problem with Keynote 09: Every time I type "o/" it turns into the nordic character "Ø" (o with forward slash through it). I turned automatic correction off in the preferences, but it still keeps doing it. The only way to circumvent this right now is to put a 'space' in between the o and the slash...however, with web addresses and other syntax critical items this poses a problem. Would be great if anybody had a workaround for this. Thanks!

    This is normally caused by old OS 9 fonts that are incompatible with OS X. Just switching fonts should fix it but also check your fonts for those from Apple dating from the 1990's and try removing them.

  • Index.html pages in local sub-directories will not load automatically when sub-directory name entered into address field, followed by a forward-slash

    I am in the process of designing a website-on-a-CD. In order to make things easier for my clients, I decided to organize this site into local sub-directories with an index.html page in each one. However, when I try to enter the local sub-directory name, followed by a forward-slash, the index page does not open automatically. Instead, I get a raw directory listing that includes the index.html file, and anything else that is present within it. I would like to know if there is any way to force this page to load automatically within Firefox from a local storage medium as it would load from a web-server.

    You need to use file:// as the protocol instead of C:/. The latter may never work (C:\ might).
    Where is the main HTML located ?
    Easiest if to store the images in a sub folder of the location because you can't go back via ../ beyond that root location for security reasons.
    See:
    *http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • Underscore randomly replaces forward slash in topic file names and topic titles

    The problem I'm seeing is similar to the discussion at http://forums.adobe.com/message/2564701 which dealt with random insertion of underscores in topic titles. That problem seemed restricted to underscores replacing spaces in Topic File names and was solved (for some people at least) by deselecting the setting   "Tools > Options > General > Use underscores in filenames." Playing with that setting has not worked for me when it comes to unwanted replacement of forward slashes.
    I'm running RoboHelp 9 and linking from FrameMaker 10. The unwanted underscores are seen in (1) the RH project and (2) the help output:
    (1) In RH project in some topic titles like this:
    I want to keep the forward slash. The upper topic title is wrong and the bottom one is correct.
    (2) In AIR Help output: search results and in the tab that appears above the breadcrumbs in the main right pane.
    I cant change the titles prior to generating output because, as Matt Sullivan wrote in the similar discussion, "...for topics created from linked FrameMaker 9 files, the Topic Title is not editable from the Topic Properties. If it was, at least I could change the offending titles prior to final generation of output. (though the titles would revert on the next update of the FrameMaker source content)."
    I've double-checked the source FrameMaker documents and I can find no difference between Headings in which the forward slash is retained (desired) and those in which the forward slash is replaced by an underscore (unwanted).  Has anyone else seen this?
    Thanks,
    Matt

    Isn't the issue here that RH is creating filenames AND topic titles based on the FM title. Because of the slash it is saying that is an illegal character it changes the filename and the title in RH is based on that, hence both change.
    I don't know if that can be changed but now you can test to see if that is what is happening.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Which keyboard layout you were using? German, French ... I suppose your layout is reset to the default: US and you are unable to find the "?" or "/" ...
    Please have a look into the keyboard viewer, to see how the layout of your keyboard is actually.
    marek

  • I have a Domain name with email forwarding to my Service Provider which worked very well when I had a PC. Now I have iMac and have changed to IMAP from POP3 so I can sync. between iMac and iPad but how?

    I have a Domain name with email forwarding to my Service Provider which worked very well when I had a PC. Now that I have iMac I have changed the account type to IMAP from POP3 so I can sync. between iMac and iPad but how?
    I do receive emails into my iMac for which I have 3 email accounts but am struggling on how synchronise between iMac and iPad so that both are up to date at all times.  I have also set up a iCloud email account thinking this was the way to go but have drawn a blank.
    Any help would be very much appreciated.

    Linc Davis,
    I have set up my email address both within my iMac and my ISP as IMAP accounts and I receive all emails without problem on my iMac. I have also set up an iCloud email address using my iMac.
    I have enabled the email within "setting" on my iPad and have used the iCloud account.  I have sent emails from the iMac to iPad using the iCloud account address and vice versa.  I have also sent emails from the iPad to the iMac using my non-iCloud email address and they have gotten through.
    The one thing I would like to have is for the iPad "mail" mailboxes to mimic the iMac "mail" mailboxes and both to be "in sync".  I am not really interested in using the iCloud email address for my email but would really like to use my "normal" addresses as these are what most people know me by.
    Do I need to set additional accounts within the iPad which are the same as the email accounts I have within the iMac and my ISP?  I have reached the end of my knowledge as regards email synchronsing.
    Thanks

  • Concatenate forward slash with int columns data type

    Hi,
    I'm trying to concatenate INT/TINYINT columns with '/' sign (forward slash).
    the error I get is:
    Conversion failed when converting the varchar value '/' to data type tinyint
    how can I concatenate it all together?
    Regards

    You have to convert first the int/tinyint values into varchar, before you can concatenate them
    SELECT CONVERT(varchar, MyIntColumn1) + '/' + CONVERT(varchar, MyIntColumn2)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I have been trying to do the serial number retrieval for the Photoshop elemems 13 and hve been having trouble getting it to go through. One set of the numbers contains a O with a slash through it and I don't know how to enter it

    I am trying to enter the redemption code for my photoshop elements 13 and have one set that has a O with a slash through it and I have no idea what to enter

    A slashed Ø often represents the number zero, to distinguish it from the character O.
    If you have more questions, please ask in the Downloading, Installing, Setting Up forum.

  • Using a Forward Slash (/) in CFFILE Destination

    Hi everyone,
    I couldn't find this anywhere in the forums (at least not
    searching for "cffile forward slash", "cffile /", or "cffile
    destination") and hope I'm posting this in the correct place
    (please let me know if not). I need to use a forward slash (/) in
    the name of a file using cffile, but when I try to set destination
    = "c:\directory\file/name.txt" cf throws an exception and tells me
    that the system can't find the "c:\directory\file\" directory. Is
    there a way to froce ColdFusion to interpret the forward slash as
    part of the file name instead of a directory structure character?
    By the way I'm using ColdFusion 6.1 Standard Edition on a Windows
    box (obviously).

    quote:
    Originally posted by:
    Newsgroup User
    I could be wrong on that. I was not going on personal
    experience, just
    something that stuck in my mind when reading something. I
    cannot find the
    URL @ present, but I'm sure I read that the only actual
    *illegal* character
    in a *nix file name is the NULL character. But experience
    trumps reading.
    The best I could find is this:
    http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/iisbook/c03_converting _unix_file_names_and_pathnames.mspx?mfr=true.
    Although that is not where I originally read it.
    Adam
    The above sounds right and seems to be generally correct in
    practice (I'm testing by transferring files from OSX to Windows),
    with the exception of the "/" character. It's possible that "/"
    isn't, in fact, illegal to a *nix OS, but just isn't valid as a
    file name in any applications (including those that ship wtih the
    OS).
    However, It's also possible (read: probable) that I have no
    idea what I'm talking about. I'll see what I can find and post it
    here, would be good to know as I'm sure others have run into this
    (and I'm sure this won't be the last time I'm given a ridiculous
    naming convention).

  • When typing an 'L' followed by forward slash '/' I get a weird character

    I can't figure this out. whenever I type a string of text that requires an L and forward slash together I get some weird character that resembles an 'f' like for designating a 'function' in an equation only its backwards. this occurs in terminal, like in this example: cd /usr/local/name the 'l' at the end of local and the forward slash become one character. I can't duplicate this character any other time, just when l/ are in a string. Any ideas? I get this in terminal and entourage (only in plain text mode - html emails the character doesn't show) mainly.

    What you are seeing is a diacritic of an L with a line through it. It does the same for o/. You are probably using a font like Palantino, Hoefler, Chicago, or New York.
    I don’t use Terminal so I don’t know how to change it in that application, but in TextEdit
    1. open the Font panel (Format/Fonts/Show Fonts, or Command-t)
    2. from the Action menu (small gear shape in lower left corner) choose Typography
    3. in the Typography window select the Diacritics section (if there is no Diacritics, select in the Fonts panel one of the fonts mentioned above, like Chicago and the Typography window will change to show a Diacritics panel)
    4. click Don’t Compose Diacritics button
    I couldn’t find a Show Fonts command in Terminal, but now that you know the procedure, maybe you can figure it out.

Maybe you are looking for

  • Flash MX - Grey stage and timeline help!!

    Hi there i have enconuntered either a bug.. or a problem with my flash work. I use Flash MX 2004 on a Mac at college, to do my work. I use Flash 8 at home on my Windows computer to do my college work. In the early stages of my project, I could use Fl

  • MacBook Air Restore Problem

    Hi I wanted to do a clean restore of my MacBook Air 2014, but I am not able to choose the right partition to install, only Restore partition is shown, but of course not available for installation. I see MacintoshHD disk un Disk Utility, but IMHO ther

  • Classification System for Vendor Master Data

    Can we create Vendor classed as we do for Material Master?

  • Nokia 6680 - switch message from off?

    Hi, I would like to send anonymous text messages with my 3G contract nokia 6680. Is this possible? Please advise. Thanks in advance. Nagsy

  • Leaf nodes in Flex cluster

    Hi,   can somebody explain what leaf nodes in flex cluster are?from documentation I see that they are nodes which dont have access to storage and they communicate with hub nodes.   Can they have oracle db instances?If so how is data transfered betwee