Read logged in user-works in Delphi7 but not in Delphi 2010

Hi all
I have some code I wrote a while back in Delphi 7 - simple program to read a currently logged in user IDs, read available class definitions, read some user attributes - relatively simple stuff. I am now trying to move to Delphi 2010 and the very same code that works on Delphi 7 does NOT work on Delphi 2010. The code was updated to compile and run on Delphi 2010, so it executes with no errors.
I am using NWDSWhoAmI to get the currently logged in user name and NWDSRead to retrieve user attribute values. On Delphi 7, the code works, all API return "Success" and return correct values. In Delphi 2010, all APIs return "Success" but the code act as if I am not logged in - the username returned is "[Public]" and when I try reading attribute values I get $8884 - RESOLVE SVC FAILED (also may mean I am not authenticated to the NDS tree).
The environment is XP and Novell Client 4.91 on the workstation, NW6.5 on the server (one sever tree). The code runs under the currently logged in user with full admin rights in the tree and Novell Client configuration on both workstations is identical. Any ideas on how to resolve this would be greatly appreciated.
Thanks
Vlad

Vlad,
since both Delphi versions go through the same DLLs it must be a difference
in the code - possibly different variable implementation as 16/32 bit or
signed/unsigned vars
It is good practice to use the NWLibrary defined variable types instead of
native Delphi types.
I have successfully used the same sources in Delphi 4, 5, 6, and 2010
Try my old samples:
http://support.novell.com/techcenter...a20020203.html and my Delphi
version independent Delphi libraries
http://developer.novell.com/wiki/index.php/Delphi-units
Wolfgang
"vladh" <[email protected]> wrote in message
news:[email protected]...
>
> Hi all
> I have some code I wrote a while back in Delphi 7 - simple program to
> read a currently logged in user IDs, read available class definitions,
> read some user attributes - relatively simple stuff. I am now trying to
> move to Delphi 2010 and the very same code that works on Delphi 7 does
> NOT work on Delphi 2010. The code was updated to compile and run on
> Delphi 2010, so it executes with no errors.
> I am using NWDSWhoAmI to get the currently logged in user name and
> NWDSRead to retrieve user attribute values. On Delphi 7, the code works,
> all API return "Success" and return correct values. In Delphi 2010, all
> APIs return "Success" but the code act as if I am not logged in - the
> username returned is "[Public]" and when I try reading attribute values
> I get $8884 - RESOLVE SVC FAILED (also may mean I am not authenticated
> to the NDS tree).
> The environment is XP and Novell Client 4.91 on the workstation, NW6.5
> on the server (one sever tree). The code runs under the currently logged
> in user with full admin rights in the tree and Novell Client
> configuration on both workstations is identical. Any ideas on how to
> resolve this would be greatly appreciated.
> Thanks
> Vlad
>
>
> --
> vladh
> ------------------------------------------------------------------------
> vladh's Profile: http://forums.novell.com/member.php?userid=84546
> View this thread: http://forums.novell.com/showthread.php?t=422167
>

Similar Messages

  • Reading input from servlet works in Windows but not Kubuntu

    I'm working on an applet/servlet/mysql database application and recently switched from Windows Vista (yeah, yeah) to Kubuntu Gutsy Gibbon. In Vista, everything worked fine (bet you've never heard anyone say that before), but in Kubuntu, I get a FileNotFound exception at the line where I initialize the ObjectInputStream (the ObjectOutputStream line doesn't throw an exception, but it doesn't look like that one works either (I output queries and such to the log files when the servlet receives them, but the logs are empty)). I tried everything I could think of (tomcat is fine, the servlet is where it should be, etc), but nothing seems to work.
    Here's the code from my applet:
    //open the connection to the servlet
    URLConnection servletConnection = servletLocation.openConnection();
    //inform the connection that we will send output and accept input
    servletConnection.setDoOutput(true);
    servletConnection.setDoInput(true);
    //don't use a cached version of URL connection.
    servletConnection.setUseCaches(false);
    servletConnection.setDefaultUseCaches(false);
    //we will send java serialized objects
    servletConnection.setRequestProperty("Content-Type", "application/x-java-serialized-object");
    //send the object to the servlet using serialization
    //*THIS LINE DOESN'T THROW AN EXCEPTION*/
    ObjectOutputStream output=new ObjectOutputStream(servletConnection.getOutputStream());
    //serialize the object
    output.writeObject(data);
    output.flush();     
    output.close();
    //get the object input stream and receive a vector
    /*THIS LINE THROWS A FILENOTFOUND EXCEPTION*/
    ObjectInputStream input=new ObjectInputStream(servletConnection.getInputStream());               
    thing = input.readObject();
    input.close();
    As you can see, I use the same servletConnection for both the output as well as the input. I don't know why one would work and not the other.
    Any input would be great. Just to reiterate, it worked fine in Vista. I'm boggled.
    Thanks.

    If its a sand box restriction you should get a security restriction. How ever getting a FileNotFountException in an applet means that your code try to access a local file some ware which is not allowed in an applet unless it is signed.
    Give us the code that you use to create the URL object. You should not use hard coded URLs in an applet. You have to get the Document URL or Codebase URL of applet and then modify it to derive the URL of the servlet.

  • Lync Delegate Meeting Creation works in OWA but not in Outlook 2010

    The environment is Exchange Online and Lync Online.
    When users are assigned Delegate rights (either through Outlook OR via Powershell into Exchange Online) they are able to create regular meetings, modify calendar entries per their rights assigned in the calendar they have delegate access to.
    However, when they attempt to create a Lync Meeting for the delegate calendar, they get the error that they do not have access.  HOWEVER, if they go to OWA, and create an Online Meeting for the delegate, it works perfectly.
    The user in question is a delegate for 3 people.  For 1 of the 3, the user can create Lync Meetings for the delegate in Outlook with no issues.  For the other 2 people, the user gets the no access error.  However, the user can create Lync
    Meetings for ALL 3 in OWA.
    The rights and permissions that the delegate has to the 3 users are the same.
    This leads me to believe it is an Outlook client issue and not an Exchange Online or Lync Online issue (the reason being the user can create the meetings in OWA)
    Tried to create a new profile for the user, tried the /CLEANPROFILE switch and neither have resolved the problem.
    Any ideas?
    Thanks,
    Tim

    Hi,
    Since everything works fine on OWA, I agree with you that this seems to be a client problem.
    Remove the delegate permission for the user completely on OWA, then regain the permission, re-configure the Outlook Profile to check the result. Please also make sure the permission of the calendars have been granted for the user too.
    Since it's client only, I doubt whether background programs are interfering with Outlook, perform a clean boot to test:
    http://support.microsoft.com/kb/929135
    Regards,
    Melon Chen
    TechNet Community Support

  • I am able to log onto my work wifi network but my Iphone

    I am able to log onto my work wifi network but my Iphone keeps disconnecting - requiring me to re-enter my username and password to rejoin the network continuoulsy. Is there a solution to this?
    Rds
    Shawn

    Thanks, checked all of that at work. It seems from other users I am not alone. Hopefully the updated IOS will fix this. In the meantime, a considerable inconvenience.

  • Flash Player works in Safari but not Internet Explorer 9

    I've installed Flash Player 10.3 and it works in Safari but not Internet Explorer 9. When I look in Manage Add-Ins I see Flash Shockwave but not Flash Player. My operating system is Windows Vista Ultimate (32bit). Safari is 5.0.5 and IE 9 is 9.0.8112.16421. I've tried uninstalling and re-installing Flash Player and uninstalling Norton 360. Nothing has worked so far. Can you help?

    Thank you for your reply. Shockwave is loaded and enabled.
    The files in flash directory are: a folder called FlashPlayerTrust: file, flash10q.ocx: file, FlashInstall.log; file, FlashUtil10q_ActiveX.dll; file, FlashUtil10q_ActiveX.exe, file, install.log.
    There is no file: NPSWF32.dll.
    When I test the browsers I get no spinning logo in either Safari or IE9. Safari says: missing plug-in, where I think the logo should be. IE-9 says nothing at the same location.
    Thanks.

  • QTSS Works on Mac but not the other

    I have a Server running OS X Server 10.5.8. I am running QTSS and Apache on this machine, however I am having issues with Quicktime streaming. One mac here is able to successfully stream but all other macs on our network fail to connect despite the QTSS "Connections" window shows the connection to the machine trying to stream the video. In the end on the client Quicktime X shows "Not Found" however I am able to connect to the server via other services (ARD, AFP, HTTP). I can post any logs that might help.
    Thanks in advance

    I couldn't remember what the Display Preferences had said when we tried this last spring and again in the summer, so tonight we connected it again, and wouldn't you know - it worked just fine. We didn't do anything different, so I have no clue as to why it worked this time but not before. He's thinking about getting his own big display, but didn't want to waste his money if he couldn't get it to work, so now I guess we're shopping for another 23" display - probably a used one. Thanks!

  • Specific extractor works in DEV but not in QUAL

    Hello Everybody
    I have new problem : I created a specific extractor ZCRM_SRV_PROCESS_I based on specific FM based on RSAX_BIW_GET_DATA_SIMPLE.
    This extractor have to retrieve specific fields of Service Order Item (linked document type BUS2000116)
    In DEV it works fine for loading INIT & DELTA
    In QUAL, loading INIT does not work but loading works for some records...
    Loading finish with following message :
      System Response
      Caller 09 contains an error message.
      Further analysis:
      The error occurred in Extractor .
      Refer to the error message.
    Job is cancelled in source system with small text :
    19.04.2011  14:51:05  Job started
    19.04.2011  14:51:05  Step 001 started (program SBIE0001, variant &0000000022545, user ID ALEREMOTE)
    19.04.2011  14:51:05  Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)
    Do you know why it works in DEV but not in QUAL ?
    Thank you
    Cyril
    Edited by: cyril meslin on Apr 20, 2011 9:53 AM

    There is no problem of authorization. In RSA3 it's ok for some records but too long for full of records.
    In fact, my FM make a first select after to be determined init or delta mode :
    IF i_updmode = 'D'.
            SELECT i~guid h~object_id h~guid h~process_type
                     INTO TABLE st_zcrmt_bw_i       
                     FROM crmd_orderadm_h AS h
                     INNER JOIN crmd_orderadm_i AS i ON h~guid = i~header
                     WHERE h~object_id    IN lr_object_id
                       AND h~changed_at   >= lv_timestp
                       AND i~guid         IN lr_item_guid
                       AND ( i~product_kind <> 'X' OR  i~product_kind <> '' )
                       AND ( h~process_type = 'ZSOL'
                          OR h~process_type = 'ZSPE'
                          OR h~process_type = 'ZSVO'
                          OR h~process_type = 'ZSVT' ).
          ELSE.
            SELECT i~guid h~object_id h~guid h~process_type
                     INTO TABLE st_zcrmt_bw_i         "PACKAGE SIZE I_MAXSIZE
                     FROM crmd_orderadm_h AS h
                     INNER JOIN crmd_orderadm_i AS i ON h~guid = i~header
    *                 UP TO I_MAXSIZE ROWS
                     WHERE h~object_id    IN lr_object_id
                       AND i~guid         IN lr_item_guid
                       AND ( i~product_kind <> 'X' OR  i~product_kind <> '' )
                       AND ( h~process_type = 'ZSOL'
                          OR h~process_type = 'ZSPE'
                          OR h~process_type = 'ZSVO'
                          OR h~process_type = 'ZSVT' ).
          ENDIF.
    Then FM CRM_ORDER_READ is running for 500 records to retrieve header data :
    CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          iv_no_auth_check     = abap_true
          it_header_guid       = it_guids      "500 records
          it_requested_objects = lt_requested_objects
        IMPORTING
          et_orderadm_h        = lt_orderadm_h
          et_service_os        = lt_service_os.
    Then this FM is running for 10 records for item data (max 10 because FM CRM_ORDER_READ does not work for more records) :
    CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          iv_only_spec_items   = abap_true
          it_item_guid         = it_guids         "10 records
          it_requested_objects = lt_requested_objects
        IMPORTING
          et_orderadm_i        = lt_orderadm_i
          et_sales             = lt_sales
          et_appointment       = lt_appointment
          et_status            = lt_status
          et_text              = lt_text
          et_subject           = lt_subject
          et_doc_flow          = lt_doc_flow
          et_customer_i        = lt_customer_i
    Perhaps if I succeeded to improve SELECT & call of CRM_ORDER_READ, it would be better but I don't know how to do...

  • Applets work in NS but not in IE

    Hello,
    I would very much appreciate tips on setting up sun java so that I can make applets that work in IE.
    Now, my IE have no problems with applets found on the web, for example this one is ok:
    http://java.sun.com/applets/jdk/1.1/demo/Animator/example1.html
    But, the examples installed with j2sdk1.4.1_07 will only work in Netscape. In IE these applets just display a grey applet area. (IE6/XP and IE5.5/Win98)
    So far:
    Have read installations instruction and ReadMe files. Installed j2sdk1.4.1_07, added PATH, code compiles fine. Console programs work ok. I also compiled a Hello World applet, which also worked in NS, but not in IE.
    Any help greatly appreciated.

    Me again...
    Right... Maybe I am answering my own question here? It seems that the programs compiled with j2sdk1.4.1_07 will NOT run under the JVM 1.1.4 from Microsoft Corp?
    So, anything that I compile with the later sun package will most likely fail on IE browsers unless the user have upgraded their JVMs?
    If so, then what version of Sun Java can be recommended to achieve reasonable amount of compatibility with the IE5.5 and IE6 that are out there?

  • BAPI works in test but not in production

    3rd party software uses BAPI to input data into SAP. This works in test but not in production. We have checked that user 3rd party software uses have same rights in both systems. BAPI is standard SAP BAPI. We can connect to production with SM59.
    Is there anything in SAP that could cause this?

    No. Better you check with the PATCH Levels.. etc to know is there any changes in the BAPI (BASIS people can help you) > Otherwise go to SYSTEM in the MENUBAR> STATUS--> Compare the Status there
    After that check the data once...
    Reward if helpful...

  • Trailing cursor javascript works in IE, but not in Firefox

    Javascript trailing cursor works in IE, but not in Firefox
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322)

    Without any links to the [http://pastebin.mozilla.org code] we can only suggest you test it in more browsers such as [http://www.opera.com/ Opera] and [http://www.google.com/chrome/ Chrome]

  • My password ror outlook works on pc but not on iphone4s

    My password for outlook works on pc but not on iphone4s

    Hi, I had a similar problem connecting my outlook to iphone. Log into your outlook account on pc. Go to settings>options>connect devices and apps with POP> click enable POP. This worked for me, hope it helps.

  • SanDisk ImageMate works on Vista, but not on Leopard

    I bought an iMac when my old Windows XP machine from Dell died last Christmas, and am mostly very pleased with it. I used Boot Camp to install Vista Home Basic on it also, because I still needed to run some Windows software.
    I recently acquired a digital camera from my daughter, along with a SmartMedia card reader by SanDisk (model SDDR-55 ImageMate). On the SanDisk website I found a driver for Windows that would work for 95, 98, ME, 2000, and XP. I downloaded it after not finding one for Vista listed. Similarly, there was a driver that would work for Macintosh OSX and OS 10.1. I downloaded it after not finding one specifically for Leopard.
    I installed both drivers under their appropriate OSes and plugged the ImageMate into a USB port on the computer. What I found was that it worked fine under Vista but was not recognized at all by Leopard. I contacted SanDisk and they had me verify that it was not a problem with the USB port. Also, they had me try to install it on another Mac (my daughter has a Mac laptop running Leopard) and it didn't work there either. So I know the ImageMate works and the USB port works.
    SanDisk then suggested I contact Apple. Is there anything I can do to get the ImageMate working on Leopard?
    One thing I noticed was that when I ran Terminal and went to /System/Library/Extensions and looked at a couple of files created during the install on the Mac, the owner and group were different from all the other files, so I made them match the others thinking file ownership might be the problem. Alas, it was not. (I did the install while logged in as admin.)
    Can anybody point me in the direction of what to do next?
    Thanks in advance,
    Sherry

    Many thanks to both of you for responding. My guess is that my ImageMate is getting old and SanDisk isn't going to help support it. I'm sure they'd rather I replace it by buying one of their newer models.
    One of my lesser attractive qualities is that I am cheap, and hate to throw away anything that still works. Since this little doobie still does (under Vista), I'll probably limp along with it there until I can't stand it anymore and buy a new one. I appreciate learning that some require drivers and some don't: that will help when it comes time to buy a replacement.
    Neither here nor there, but this is the 2nd device I've had difficulty with getting to work on Leopard but not on Vista (the other being my HP PSC 1315xi printer/scanner/copier).

  • Tiger Server: Default MySQL works for phpMyAdmin but not command line ? ? ?

    Greetings all,
    I followed the excellent instructions at
    http://discussions.apple.com/thread.jspa?threadID=132783&tstart=0
    on upgrading PHP to version 5 and getting (the preinstalled) MySQL setup with phpMyAdmin
    I can connect through the phpMyAdmin, create new dbs, etc. Problem is that now I CAN'T connect from the command line. (I originally set my new root password from the command line and that's the last time I could connect from there!
    Now I get the dreaded ERROR 2002 when I attempt:
    /usr/bin/mysql -h localhost -u root -p
    If I use the IP address or hostname instead of "localhost" (after -h) I get a ERROR 2003. Dropping the -h and hostname from the line above still gets me a ERROR 2002.
    My phpMyAdmin config is a connect type "TCP" not socket, which might be one reason it works and the command line doesn't, but I still don't know where I've gone wrong.
    My /var/mysql/* is all owned by mysql and group www.
    I'm finding lots of people asking about the ERROR 2002, but not finding any solutions (particularly for Tiger Server). I'd prefer to use the preinstalled MySQL to installing a new installation (the thread referenced above says upgrading or removing the MySQL installation is too hard to do) and there has GOT to be a reasonable explanation for why it works with phpMyAdmin, but not the command line.
    Thanks in advance for any replies!
    Many   Mac OS X (10.4.3)  

    You know what? I think when I started mysql_safe, I did it with sudo. Maybe that is my problem?
    If so, what user do I want to start it as? I've seen one suggestion of doing this:
    ./bin/mysqld_safe --user=mysql &

  • Some websites keep asking to enable cookies in my browser when they are and I can't get this sites to see that, they worked fine yesturday but not now, any help

    Some websites keep asking to enable cookies in my browser when they are and I can't get this sites to see that, they worked fine yesterday but not now. I've restarted the browser, restarted the computer, disabled then enabled cookies in the privacy settings and still nothing. Any help?

    Hi,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Wifi works at home but not when away from home

    My Wifi works at home but not when away from home, what is wrong?  I thought with a phone plan I didn't need to have a wifi connection.

    You either need WiFi or Cellular (or both). If you have neither, you can't connect to the internet.
    Most people use WiFi at home and Cellular while away from home, or connect to public WiFi networks where there are some.

Maybe you are looking for

  • Is there a way to download previously purchased audio books on my iphone

    I previously downloaded an audiobook on my iPad. just upgraded to an i phone 5 with larger capacity and now i want to dowload the book i purchased on my ipad originally. when i search for the book in the itunes store it doesn't give me a "download" b

  • Getting an error in while transfer the data to SAP

    Hello Everyone, I am getting an error   <SAP:Category>XIServer</SAP:Category>   <SAP:Code area="MAPPING">JCO_COMMUNICATION_FAILURE</SAP:Code>   <SAP:P1>Error opening an RFC connection.</SAP:P1> when i was transfing the data to SAP R/3. But i found th

  • How do I setup a form to validate a user's email address by having the user type in his/her address twice

    hiya guys, can anybody help with this? I have a form already that works great but I have found some people are not typing in their correct email address - so really would like to have the validation which wont let them carry on until their email type

  • AQ_TM_PROCESSES is set to 0

    Hi, We have 1206 (R12) with 10.2.0.4 RDBMS, I find in the alert log file below message WARNING: AQ_TM_PROCESSES is set to 0. System operation might be adversely affected.I found Doc from support : 428441.1 which suggests to change this parameter to 1

  • All Photos disappeared . Pls HELP !!

    About 2 days back my iPhoto disappeared without warning.I have since got the iPhoto library however all the pictures are gone.I do not have any back ups. I have tried the steps mentioned on other post but nothing seems to help. (When i follow this st