Path of directory on solaris

Hi
How can i format the file path string which would be machine independent? The code shown below works perfectly well in windows JVM, but iam worried whether the same code will also work on solaris?
String hostIp="";
try
hostIp = InetAddress.getLocalHost().getHostAddress();     
String path1 = "\\" + "\\" + hostIp;
String path2 = "\\data\\field\\";
return path1 + path2;
Please advise.
Thanks in advance.
Gaurav

Use file.separator instead of "\\".
Better yet, if this path will always be used in a File or FileInputStream or something equivalent constructor and not in a Runtime.exec, then simply use "/".
Edit: Then again, I see you are also referencing a remote machine here using the \\<ip>\<path> structure. Well, that structure, in and of itself, does not work on unix. On unix you mount shared file systems, then use them like any other, or, you go over /net/<ip>/<path>.

Similar Messages

  • Forte WS6U1 - Search path SunWS_Cache directory needs write permission

    Forte 6 U1, needs write permission to search path SunWS_Cache directory.
    When I build a file locally checked out from the baseline directory, and the baseline SunWS_Cache directory needs write permission.
    Lets say,
    /home/zeebra/baseline/util - is the directory where the baseline is.
    Having local workarea as /home/user/work/util
    The local work has the baseline in search path. But the local -user does not have write permission on baseline/util/SunWS_Cache.
    The local compilation goes thro fine, but when linking it just hangs. As soon as I give the write permission to baseline/util/SunWS_Cache, the linking completes.
    Is it a bug? Do we have patch already for this problem for Forte6 Update 1?
    Thanks!

    The SunWS_Cache directory must have write permission. The cache contains state information that must be locked when a compiler is being run, to avoid trashing the state information if another compilation runs in the same directory at the same time. (Sun C++ supports dmake and gmake for running multiple compilations in parallel.)
    A non-writeable template cache is not an available option.
    Starting with C++ 5.5 (Sun ONE Studio 8 Compiler Collection), the template cache is no longer required, and by default is not used. If you are having problems involving the cache, you should consider upgrading to this new release.

  • Local bin directory in solaris 10

    Hi
    Which is the local bin directory in solaris 10
    /bin or /usr/bin? or else?
    Ashraf

    Its /usr/local/bin, if you run mkdir -p /usr/local/bin first.
    .7/M.

  • Validate whether a file path or directory exists on application server

    hi,
    I need to validate if a directory or file path exist on application server. How do we do that?
    thanks.

    DATA:
        ltp_bom                  TYPE sychar01,
        ltp_encoding             TYPE sychar01,
        ltp_codepage             TYPE cpcodepage.
    Processing --------------------------------------------------------- *
      TRY.
          CALL METHOD cl_abap_file_utilities=>check_utf8
            EXPORTING
              file_name         = itp_filename
              max_kb            = -1
              all_if_7bit_ascii = abap_true
            IMPORTING
              bom               = ltp_bom
              encoding          = ltp_encoding.
        CATCH cx_sy_file_open .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_open_error.
        CATCH cx_sy_file_authority .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_authority_error.
        CATCH cx_sy_file_io .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_io_error.
      ENDTRY.

  • Directory logical path to directory physical path

    Hello experts,
    I have question related to getting path from defined earlier logcal path in FILE transaction.
    I know there are FMs called 'FILE_GET_NAME' and 'FILE_GET_NAME_AND_LOGICAL_PATH' but they are not solving my problem.
    Let's say I know only physical file name and logical file directory, but I don't know the full physical path of file.
    I now want to build a program where user writes down the physical name of the file and in the code side there is defined logical file directory from which we can get the physical directory path and concatenate it with entered filename. Is there a possibility to do that?
    Thank you in advance.
    Best regards,
    Andrew

    function module FILE_GET_NAME_USING_PATH is doing exactly that.

  • Path for Directory in Selection Screen

    I have one field in selection screen Error log.
    I have to pick path for dirctory in that parameter, so that I can save my error log there on that path.
    how i can do it ?
    F4 for the path is needed. how i will define that parameter in selection screen?

    Hi
    Check the below logic:
    DATA :G_DIR1 TYPE STRING.
    DATA : G_T_FILENAMES TYPE SETST_TYPE_STANDARD_TABLE,
           G_WA_FILES LIKE LINE OF G_T_FILENAMES.
    PARAMETERS: P_FOLDER TYPE RLGRAP-FILENAME OBLIGATORY
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FOLDER.
      PERFORM F1000_GET_DIR.
    START-OF-SELECTION.
      IF G_DIR IS INITIAL.
        G_DIR = P_FOLDER.
      ENDIF.
    PERFORM F1100_GET_FILENAMES USING G_DIR.
    FORM F1000_GET_DIR .
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
        EXPORTING
          WINDOW_TITLE         = 'Folder for ADP Files'
          INITIAL_FOLDER       = G_DIR1
        CHANGING
          SELECTED_FOLDER      = G_DIR1
        EXCEPTIONS
          CNTL_ERROR           = 1
          ERROR_NO_GUI         = 2
          NOT_SUPPORTED_BY_GUI = 3
          OTHERS               = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        P_FOLDER = G_DIR1.
      ENDIF.
    ENDFORM.
    FORM F1100_GET_FILENAMES  USING    P_DIR.
      DATA : L_DIR TYPE STRING,
                L_COUNT TYPE I,
                L_COUNT1 TYPE I.
      DATA : L_T_FILES TYPE SETST_TYPE_STANDARD_TABLE,
             WA_FILES LIKE LINE OF L_T_FILES.
      L_DIR = P_DIR.
      CLEAR : G_T_FILENAMES[], G_T_FILENAMES.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
        EXPORTING
          DIRECTORY                   = L_DIR
       FILTER                      = '.'
       FILES_ONLY                  =
       DIRECTORIES_ONLY            =
        CHANGING
          FILE_TABLE                  = L_T_FILES
          COUNT                       = L_COUNT
        EXCEPTIONS
          CNTL_ERROR                  = 1
          DIRECTORY_LIST_FILES_FAILED = 2
          WRONG_PARAMETER             = 3
          ERROR_NO_GUI                = 4
          NOT_SUPPORTED_BY_GUI        = 5
          OTHERS                      = 6
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      G_T_FILENAMES[] = L_T_FILES[].
      LOOP AT G_T_FILENAMES INTO G_WA_FILES.
        IF G_WA_FILES CS SY-DATUM.
          G_WA_FILES1 = G_WA_FILES.
          APPEND G_WA_FILES1 TO G_T_FILENAMES1.
        ENDIF.
      ENDLOOP.
    Regards,
    Ravinder

  • How to create first instance of directory server (Solaris 9).

    With solaris 9 installation also installs iplanet directory server in "/usr/iplanet/ds5". But there is no instance of the directory server available.
    How can I add the first instcance of the directory server.
    I can not use the admin server as it requires the userid to connect which is not known to me.

    Bharat,
    I have used a script like the following to add a DS instance, though not on Solaris 9. I believe it should work
    #!/bin/sh
    cd /usr/iplanet/ds51/servers/bin/slapd/admin/bin
    ./ds_create -f /setup_scripts/installDataDSD02.inf
    The .inf file is a silent install file which is well documented in the directory server installation documentation.
    Hope this helps
    -Pawan

  • How to put path one directory up i.e ../

    Hi ,
    i have two questions.
    1) I have path in my properties file say
    variable = [Bold]/abc/def[Bold] .
    Now when I get this direcorty I need to move to directory parallel to the [Bold]def [Bold] directory say
    [Bold]xyz [Bold]
    Now say I have a program file where I use a String variable to get the path
    String str1 = proerties.instance().get("variable");
    To this I need to add
    [Bold]../xyz[Bold] so that I actually land up in Bold]/abc/def[Bold] directory and not the Bold]/abc/def[Bold] directory.
    Also this will change with operating system so how can I find out which operating system I am working on with within my program.
    Regards,
    Anand

    Got the first part of the question.
    Need to just do this actually /abc/def/../xyz. in the string. Was confused becoz dos uses \abc\def\..\xyz and the same when used in java has to be \\abc\\def\\..\\xyz.
    Any ways the second part of the question still remains as to determine the operating system in my program.
    Regards,
    Anand

  • In javascript the property value of element HTMLInputElement (type="file") return only the filename not the full path of directory. how I recover the entire path?

    ''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/785312]''
    <html>
    <head>
    <script language="javascript">
    function inspect(){
    var myFile = document.getElementById('myFile');
    alert(myFile.value);
    alert(myFile.filename);
    </script>
    </head>
    <body>
    <form>
    <input type="button" id="myButton" value="open" onclick="inspect();">
    <input type="file" id="myFile" name="myFile" value="">
    </form>
    </body>
    </html>

    See comments 49 and 50:
    * [https://bugzilla.mozilla.org/show_bug.cgi?id=143220 Bug 143220] - [FIX]Script can get the value of a file control, including the path
    If you need more help then ask here:
    * http://groups.google.com/group/mozilla.dev.security/topics?lnk=srg Discussions - mozilla.dev.security

  • The file path and directory about the .exe file created in LabView, who knows?

    I have a project, in the project, VIs and documents(.doc,.txt,.tdms,etc.) in different directories, and when the project run in the labView, it can find the directories and files, but when I created .exe file, I found the directories had changed and I didn't know the directory structure in the file, anyone know it?
    Thanks for any reply!
    YangAfreet

    Have a look at the link in my earlier post:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=267439#M267439
    LabVIEW Champion . Do more with less code and in less time .

  • Path and directory

    I have ever my problem with a connection to a .txt file. Do you know if they exist a small app to know the path of the app on the support. I think that my problem could be a path problem.

    Have a look at the link in my earlier post:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=267439#M267439
    LabVIEW Champion . Do more with less code and in less time .

  • How to get the current path/directory

    Hey,
    I was wondering how to figure out the current path or directory where my Application is running (stored) in! I know there is a statement like getCodebase() for Applets to get the actual path, but I couldn't find anything similar for regular Applications. I think I can not just use a absolute path, since it might run on different os with different file seperator (like /root or c:\). Any help is welcome!
    Thank you very much,
    Marc

    Try this ...
            System.out.println("current directory = " + System.getProperty("user.dir"));
    [/code}                                                                                                                                                                                                                               

  • Issue with UTL FILE, does not read directory path

    Hi Guys
    I have created a procedure using a UTL_File, but when I execute that procedure, it comes with an invalid directory path.
    create directory r_bmw as 'C:\BMW';
    grant read, write on directory r_bmw to bmw;
    The above have been created successfully. (r_bmw is the Directory Name. C:\BMW is the directory path.)
    Below is my code:
    create or replace
    PROCEDURE DCA_BMW_OUT
    IS
    -- Declare all variables as reference
    v_out_file UTL_FILE.FILE_TYPE;
    v_row_Count NUMBER;
    r_bmw NUMBER;
    v_out_directory all_directories.directory_path%type;
    v_out_filehandle UTL_FILE.FILE_TYPE := NULL;
    v_out_buffer varchar2 (32767);
    v_records NUMBER;
    body_output varchar2(32759 BYTE);
    dictionary_guarantorsexist varchar2 (1 Char);
    -- Text required within this part of the procedure
    v_body varchar2(32767 BYTE);
    v_header VARCHAR2(32759 BYTE);
    BEGIN
    --- Directories have been created
    FOR r_bmw IN
    ( SELECT *
    FROM dcaadditionaldata
    WHERE directory_name IS NOT NULL
    ) LOOP
    -- inner loop produces the rows in each file
    -- outer loop identifies each of the dca's you want to generate a file for
    BEGIN
    -- Output file to be added into the directory specified
    v_out_file := utl_file.fopen (r_bmw.directory_name, 'DCAExport_1_' || TRIM(TO_CHAR(SYSDATE,'DDMMYYYY_HH24MISS')) || '.txt', 'W');
    -- The Header data which will be outputted to the file
    v_header := 'KennzeichenBrgschaftsforderungGesamtforderung|Währung|Übergabedatum|DifferenzierungAnwalts-oderInkassofall|MainMarktpartnernummer|
    MainAnrede|MainTitel|MainName|MainVorname|MainStraße|MainHausnummer|MainPLZ|MainOrt|MainLand|MainGeburtsdatum|MainTelefonnr.Schuldner|G1Marktpartnernummer
    |G1Anrede|G1Titel|G1Name|G1Vorname|G1Straße|G1Hausnummer|G1PLZ|G1Ort|G1Land|G1Geburtsdatum|G1Telefonnr.Schuldner|G2Marktpartnernummer|G2Anrede|G2Titel|
    G2Name|G2Vorname|G2Straße|G2Hausnummer|G2PLZ|G2Ort|G2Land|G2Geburtsdatum|G2Telefonnr.Schuldner|G3Marktpartnernummer|G3Anrede|G3Titel|G3Name|G3Vorname|
    G3Straße|G3Hausnummer|G3PLZ|G3Ort|G3Land|G3Geburtsdatum|G3Telefonnr.Schuldner|G4Marktpartnernummer|G4Anrede|G4Titel|G4Name|G4Vorname|G4Straße|G4Hausnummer|
    G4PLZ|G4Ort|G4Land|G4Geburtsdatum|G4Telefonnr Schuldner|G5Marktpartnernummer|G5Anrede|G5Titel|G5Name|G5Vorname|G5Straße|G5Hausnummer|G5PLZ|G5Ort|G5Land|
    G5Geburtsdatum|G5Telefonnr.Schuldner|Kundennr.|Bestandsnr.|Finanzierungsnr.|KennzeichenFinanzierung/Leasing|Kennzeichenprivat/gewerblich|
    reguläresVertragsende|Laufzeit|Vertragsdatum|Vertragsstatus|Ratenbetrag|Filiale/Gebiet|Finanzierungstyp|BankverbindungKonto|BankverbindungBLZ|
    RSVKennzeichen|Kündigungsdatum|Modell|Fahrgestellnummer|KFZKennzeichen|KFZZulassungsdatum|CoD1Marktpartnernummer|CoD1Anrede|CoD1Titel|CoD1Name|
    CoD1Vorname|CoD1Straße|CoD1Hausnummer|CoD1PLZ|CoD1Ort|CoD1Land|CoD1Geburtsdatum|CoD1Telefonnr.Schuldner|CoD2Marktpartnernummer|CoD2Anrede|CoD2Titel|
    CoD2Name|CoD2Vorname|CoD2Straße|CoD2Hausnummer|CoD2PLZ|CoD2Ort|CoD2Land|CoD2Geburtsdatum|CoD2Telefonnr.Schuldner|CoD3Marktpartnernummer|CoD3Anrede|
    CoD3Titel|CoD3Name|CoD3Vorname|CoD3Straße|CoD3Hausnummer|CoD3PLZ|CoD3Ort|CoD3Land|CoD3Geburtsdatum|CoD3Telefonnr.Schuldner|CoD4Marktpartnernummer|
    CoD4Anrede|CoD4Titel|CoD4Name|CoD4Vorname|CoD4Straße|CoD4Hausnummer|CoD4PLZ|CoD4Ort|CoD4Land|CoD4Geburtsdatum|CoD4Telefonnr.Schuldner|
    CoD5Marktpartnernummer|CoD5Anrede|CoD5Titel|CoD5Name|CoD5Vorname|CoD5Straße|CoD5Hausnummer|CoD5PLZ|CoD5Ort|CoD5Land|CoD5Geburtsdatum|
    CoD5Telefonnr.Schuldner Y|Y|5830,99|EUR|20/08/2009|DCA|4|123456|Herr||Mueller|Rainer|Messigasse|33|84432|Filz|Deutschland|01/07/1957|08912345|234567|Frau|Dr|Mueller|Rita|Messigasse|33|84432|Filz|Deutschland|13/12/1955|08912345|||||||||||||||||||||||||||||||||||||||||||||||||76543|5000234567||Lease|Privat|12/12/2013|60|12/12/2008||250,50|US|Rate|1234567890|32343450|N||BMW 320 i|W34567890PA34567|M-H-3456|09/12/2008||||||||||||||||||||||||
    N|450,80|EUR|20/08/2009|DCA|4|987654|Frau||Meier|Heide|Beinstr.|44|86353|Laus|Deutschland|03/06/1949|08987654|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||87654||8765675585|Loan|Gewerblich|14/03/2012|72|14/03/2006||500,01|DF|Select|976579657|32343450|N||BMW 500 sl|W94567890PA34568|M-H-3457|10/03/2006|34343434|Herr|Dipl|Meier|Rudolf|Heislestr.|69|85433|Maus|Deutschland|28/05/1945|08934567|234567|Frau|Dr|Mueller|Rita|Messigasse|33|84432|Filz|Deutschland|13/12/1955|08912345
    Y|33970,50|EUR|20/08/2009|Lawyer|4|64646464|Frau||Schmidt|Susanne|Hueftgasse|55|89363|Maus|Deutschland|23/08/1933|08934567|34343434|Herr|Dipl|Meier|Rudolf|Heislestr.|69|85433|Maus|Deutschland|28/05/1945|08934567|234567|Frau|Dr|Mueller|Rita|Messigasse|33|84432|Filz|Deutschland|13/12/1955|08912345|||||||||||||||||||||||||||||||||||||98757|5000785675||Lease|Privat|11/11/2009|48|11/11/2005||380,70|GH|Zielrate|234567899|32343450|Y||BMW 380 s|W54567890PA34569|M-H-3458|07/11/2005||||||||||||||||||||||||
    N|10040,20|EUR|20/08/2009|Lawyer|4|4865465|Herr||Schulz|Karl|Nasenweg|77|83354|Schuh|Deutschland|18/01/1965|08972545|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||46789|50004765787||Lease|Privat|16/09/2012|60|16/09/2007||1234,56|OS|ZUS|98765432|32343450|Y||BMW 280 i|W74567890PA34570|M-H-3459|12/09/2007||||||||||||||||||||||||';
    utl_file.PUT_LINE(v_out_file,v_header,TRUE);
    -- Below will output a row of data which satisfy the requirements.
    FOR body_output IN
    ( SELECT
    AccountDetails.CUSTOMERNUMBER, AccountDetails.ACCOUNTNUMBER, CUSTOMERDETAILS.CDTITLE, CUSTOMERDETAILS.CDFIRSTNAME, CUSTOMERDETAILS.CDLASTNAME, AccountDetails.ACCOUNTTYPE,
    AccountDetails.ORIGINALCONTRACTENDDATE, AccountDetails.CONTRACTTERM, AccountDetails.CONTRACTENDDATE, AccountDetails.BRANCHAREA, AccountDetails.PRODUCTTYPE,
    AccountDetails.HOUSEBANKACCOUNT, AccountDetails.CARMODEL, AccountDetails.CARLICENCE, AccountDetails.ARREARSBALANCE, AccountDetails.CODEBTOR, AccountDetails.GUARANTORNUMBER
    FROM AccountDetails
    JOIN CUSTOMERDETAILS ON AccountDetails.CUSTOMERNUMBER = CUSTOMERDETAILS.CUSTOMERS1
    WHERE EXISTS
    ( SELECT *
    FROM Dcaaccountallocation
    JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
    WHERE Dcaaccountallocation.DCAID = 41
    AND Dcaaccountallocation.status = 3
    AND DebtEpisodes.DCASentDate IS NULL
    AND Dcaaccountallocation.ACCOUNTID = AccountDetails.ACCOUNTNUMBER
    AND DebtEpisodes.DCAORLAWYER = 'DCA'
    LOOP
    UTL_FILE.PUT_LINE (v_out_file,
    body_output.CUSTOMERNUMBER|| '|' || body_output.ACCOUNTNUMBER|| '|' ||body_output.CDTITLE|| '||' ||body_output.CDFIRSTNAME || '|||||' ||
    body_output.CDLASTNAME|| '||||' || body_output.ACCOUNTTYPE|| '|' ||body_output.ORIGINALCONTRACTENDDATE|| '||||' ||body_output.CONTRACTTERM || '|||||' ||
    body_output.CONTRACTENDDATE|| '|' || body_output.BRANCHAREA|| '||' ||body_output.PRODUCTTYPE|| '||' ||
    body_output.HOUSEBANKACCOUNT|| '|||' || body_output.CARMODEL|| '||||' ||body_output.CARLICENCE|| '|' ||
    body_output.ARREARSBALANCE|| '||||' || body_output.CODEBTOR|| '|' ||body_output.GUARANTORnumber);
    END LOOP;
    -- UTL_FILE.fclose (v_out_file);
    -- EXCEPTION
    --WHEN OTHERS THEN
    --UTL_FILE.put_line (v_out_file, 'failed');
    -- If any errors occur when closing the file, then we close the opened file.
    IF utl_file.is_open(v_out_file) THEN
              UTL_FILE.put_line (v_out_file, 'failed');
    UTL_FILE.fclose (v_out_file);
    END IF;
    END;
    UPDATE DebtEpisodes
    SET handoverdate = null
    WHERE DCAORLAWYER = 'DCA'
    AND accountid IN
    ( SELECT accountid
    FROM Dcaaccountallocation
    WHERE Dcaaccountallocation.status = 3
    AND Dcaaccountallocation.dcaid = 41
    END LOOP;
    END DCA_BMW_OUT;
    -- It compiles successfully, but when executes, it provides me with the 'invalid directory path' error message.
    Any help?
    Thanks

    Ram wrote:
    DCAID DIRECTORY_NAME MPNO IN_DIRECTORY_NAME INVESTOR
    4     DCA_PKFO_OUT     51950     DCA_PKFO_IN     (null)
    41     INV_ALTOR_OUT     488742     INV_ALTOR_IN Y
    2     DCA_NIG_OUT     686007     DCA_NIG_IN     (null)
    3     DCA_RAF_OUT     777163     DCA_RAF_IN     (null)
    21     INV_INFOSCORE_OUT 3482400     INV_INFOSCORE_IN     Y
    22     INV_HOIST_OUT     2866813     INV_HOIST_IN     Y
    Above is the output when select * from dca additional data.
    I have edited the r_bmw to varchar (32757 BYTE);
    however, the same errors still appear. Would I need to change the select statement to a different table...and not dca additional data?
    ThanksSo you have created a directory name r_bmw
    create directory r_bmw as 'C:\BMW';
    grant read, write on directory r_bmw to bmw;And your are querying select * from dca additional data, which doesn't return your recently created directory.... So... what to do what to do.... You should query the all_directories with directory_name = 'r_bmw'.

  • Authorisation Active Directory Win2003 users in Solaris 10

    Now I am having the task to configure kereberos authentication and ldap authorisation users of Win2003 Active Directory in Solaris 10.
    Kerberos authentication configured by native pam_krb5 according paper http://www.microsoft.com/technet/itsolutions/cits/interopmigration/unix/usecdirw/08wsdsu.mspx and works fine.
    But I can't configure authorisation by native ldapclient library.
    Can you give steb-by-step guide about configuring native ldapclient and pam.conf for authorisation AD users on Solaris 10.
    ldaplist command return error
    bash-3.00# ldaplist
    ldaplist: Object not found (LDAP ERROR (12): Unavailable critical extension.)
    And snoop ldap return (10.25.66.222 - Solaris 10, 10.25.67.251 -AD-controller)
    bash-3.00# snoop ldap
    Using device /dev/pcn0 (promiscuous mode)
    10.25.67.251 -> 10.25.66.222 LDAP R port=32926
    10.25.66.222 -> 10.25.67.251 LDAP C port=32926
    10.25.66.222 -> 10.25.67.251 LDAP C port=32926
    10.25.66.222 -> 10.25.67.251 LDAP C port=32926 Bind Request
    10.25.67.251 -> 10.25.66.222 LDAP R port=32926 Bind Response Success
    10.25.66.222 -> 10.25.67.251 LDAP C port=32926
    10.25.66.222 -> 10.25.67.251 LDAP C port=32926 Search Request derefAlways
    10.25.67.251 -> 10.25.66.222 LDAP R port=32926 Search ResDone Unavailable Critic
    al Extension
    10.25.66.222 -> 10.25.67.251 LDAP C port=32926
    10.25.66.222 -> 10.25.67.251 LDAP C port=32926 Unbind Request
    10.25.67.251 -> 10.25.66.222 LDAP R port=32926
    10.25.66.222 -> 10.25.67.251 LDAP C port=32926
    10.25.67.251 -> 10.25.66.222 LDAP R port=32926
    10.25.66.222 -> 10.25.67.251 LDAP C port=32926
    10.25.67.251 -> 10.25.66.222 LDAP R port=32927
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927 Bind Request
    10.25.67.251 -> 10.25.66.222 LDAP R port=32927 Bind Response Success
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927 Search Request derefAlways
    10.25.67.251 -> 10.25.66.222 LDAP R port=32927 Search ResDone No Such Object
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927 Search Request derefAlways
    10.25.67.251 -> 10.25.66.222 LDAP R port=32927 Search ResDone No Such Object
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927 Search Request derefAlways
    10.25.67.251 -> 10.25.66.222 LDAP R port=32927 Search ResDone No Such Object
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927 Search Request derefAlways
    10.25.67.251 -> 10.25.66.222 LDAP R port=32927 Search ResDone No Such Object
    10.25.66.222 -> 10.25.67.251 LDAP C port=32927
    My current 'ldapclient list' is following:
    bash-3.00# ldapclient list
    NS_LDAP_FILE_VERSION= 2.0
    NS_LDAP_BINDDN= cn=ldap_test,ou=Users,ou=Office,dc=corp,dc=com
    NS_LDAP_BINDPASSWD= {NS1}5e10c247a91661a5b4
    NS_LDAP_SERVERS= 10.25.67.251
    NS_LDAP_SEARCH_BASEDN= dc=corp,dc=com
    NS_LDAP_AUTH= simple
    NS_LDAP_SEARCH_REF= TRUE
    NS_LDAP_SEARCH_SCOPE= sub
    NS_LDAP_CACHETTL= 0
    NS_LDAP_CREDENTIAL_LEVEL= proxy
    NS_LDAP_SERVICE_AUTH_METHOD= pam_ldap:simple
    NS_LDAP_SERVICE_AUTH_METHOD= passwd-cmd:simple
    And pam.conf:
    # Authentication management
    login auth requisite pam_authtok_get.so.1
    login auth required pam_dhkeys.so.1
    login auth sufficient pam_krb5.so.1 debug
    login auth required pam_unix_cred.so.1
    login auth required pam_unix_auth.so.1
    login auth required pam_dial_auth.so.1
    # rlogin service (explicit because of pam_rhost_auth)
    dtlogin auth requisite pam_authtok_get.so.1
    dtlogin auth required pam_dhkeys.so.1
    dtlogin auth sufficient pam_krb5.so.1 debug
    dtlogin auth required pam_unix_cred.so.1
    dtlogin auth required pam_unix_auth.so.1
    other auth requisite pam_authtok_get.so.1
    other auth required pam_dhkeys.so.1
    other auth sufficient pam_krb5.so.1 debug
    other auth required pam_unix_cred.so.1
    other auth required pam_unix_auth.so.1
    passwd auth required pam_passwd_auth.so.1
    cron account required pam_unix_account.so.1
    other account requisite pam_roles.so.1
    other account required pam_unix_account.so.1
    other account required pam_krb5.so.1 debug
    other session required pam_unix_session.so.1
    other session sufficient pam_krb5.so.1 debug
    other password required pam_dhkeys.so.1
    other password requisite pam_authtok_get.so.1
    other password requisite pam_authtok_check.so.1
    other password sufficient pam_krb5.so.1 debug
    other password required pam_authtok_store.so.1

    I tried this, but i found the Solaris implementation to unstable and scarry, so i decided to go with VAS or Vintela from Quest:
    http://www.vintela.com
    it really works, unlike Suns LDAP implementations, and its easy too..
    7/M.

  • Invalid Directory Path Error

    Hi Guys i am executing the following commands to create a directory and to put a file in the newly created directory, it is givig error of invalid directory path.
    create directory dir_output as 'D:\Ora_Applications\'
    grant read, write on directory dir_output to public
    create or replace procedure Write_to_File
    IS
    f utl_file.file_type;
    begin
    f := utl_file.fopen('dir_output', 'something.txt', 'w');
    utl_file.put_line(f, 'line one: some text');
    utl_file.put_line(f, 'line two: more text');
    utl_file.fclose(f);
    end;
    when i execute the procedure it gives the following error:
    ERROR at line 1:
    ORA-29280: invalid directory path
    ORA-06512: at "SYS.UTL_FILE", line 18
    ORA-06512: at "SYS.UTL_FILE", line 424
    ORA-06512: at "SCOTT.WRITE_TO_FILE", line 5
    ORA-06512: at line 1
    Please help me out of it.
    Regards,
    Imran Baig

    f := utl_file.fopen('dir_output', 'something.txt', 'w');Directory name must be uppercase. Try
    f := utl_file.fopen('DIR_OUTPUT', 'something.txt', 'w');

Maybe you are looking for