C# - How do I read the logged-in username?

Hi,
I am looking for a way, to retrieve the logged-in username.
Just like:
User.Identity.Name;
The Windows username and Novell username are not always the same, so I can't use this method.
Regards,
Kim Bang

You want to "read the Novell username", but the problem is that one PC can
be logged in with multiple identities to multiple trees/servers
I suggest to take a look at the linked articles to understand the
architecture, and deicide on your approach;
then if you have eDirectory specific questions post in this forum
http://forums.novell.com/novell-prod.../edir-windows/
if you decide to go for ActiveX you'll find the Novell ActiveX controls are
deprecated (the forum may be closed, but still can be searched for info),
but may still be helpful:
http://www.novell.com/developer/ndk/...supported.html.
The NWSess control would get you what you need.
Wolfgang
"kimbang" wrote in message news:[email protected]..
Thank you for your reply.
The idea is, that my webapp (ASP.NET) can read the Novell username on
the client pc (Windows XP).
Just like you can read the Windows username. The webserver (IIS) is
running locally on the network, that is also why the Windows username
works, because that wouldn't be the case with a remote webserver.
Wether or not I'm in the right forum I do not know. I was requested to
find out, how to do the above, and I am not really that much in to
Novell unfortunatly.
But if i am in a wrong category, I would very much like to know which
is the rigth one for this questing.
kimbang
kimbang's Profile: http://forums.novell.com/member.php?userid=102779
View this thread: http://forums.novell.com/showthread.php?t=430307

Similar Messages

  • How to find the logged-in username

    Hello everyone,
    My application needs to find the logged-in username from the
    operating system, which in this case will always be Windows. This
    would be the same as the USERNAME environment variable that can be
    obtained from typing "set" from the command prompt. Anyone know how
    this can be done? Many thanks, --Bob

    Hi,
    There's no direct API for this, but you can try:
    var username:String = File.userDirectory.name;
    (Refer
    http://www.johncblandii.com/2008/09/air-tip-getting-logged-in-user.html))

  • When i try to add DownloadHelper it comes up with unexpected installation error review the error console log for more details - 203, how to it check the log and how do i fix this problem?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    When i tried to install DownloadHelper this happened Firefox could not install the file at
    https://addons.mozilla.org/en-US/firefox/downloads/latest/3006/addon-3006-latest.xpi?src=addondetail
    because: Unexpected installation error
    Review the Error Console log for more details.
    -203
    , how do i check the log and how do i resolve this problem? thank you
    == This happened
    ==
    Just once or twice
    == today
    ==
    == Troubleshooting information
    ==
    Application Basics
    Name
    Firefox
    Version
    3.6.3
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Ask Toolbar for Firefox
    2.1.0.5
    true
    AVG Safe Search
    9.0.0.783
    true
    {3f963a5b-e555-4543-90e2-c3908898db71}
    Java Console
    6.0.17
    true
    Microsoft .NET Framework Assistant
    1.1
    true
    {20a82645-c095-46ed-80e3-08825760534b}
    BitDefender Antiphishing Toolbar
    2.0
    true
    [email protected]
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.flashBar
    0
    browser.places.smartBookmarksVersion
    2
    browser.startup.homepage_override.mstone
    rv:1.9.2.3
    extensions.lastAppVersion
    3.6.3
    general.useragent.extra.microsoftdotnet
    (.NET CLR 3.5.30729)
    network.cookie.prefsMigrated
    true
    places.last_vacuum
    1276351876
    print.print_printer
    HP Photosmart D5300 series
    print.printer_HP_Photosmart_D5300_series.print_bgcolor
    false
    print.printer_HP_Photosmart_D5300_series.print_bgimages
    false
    print.printer_HP_Photosmart_D5300_series.print_command
    print.printer_HP_Photosmart_D5300_series.print_downloadfonts
    false
    print.printer_HP_Photosmart_D5300_series.print_edge_bottom
    0
    print.printer_HP_Photosmart_D5300_series.print_edge_left
    0
    print.printer_HP_Photosmart_D5300_series.print_edge_right
    0
    print.printer_HP_Photosmart_D5300_series.print_edge_top
    0
    print.printer_HP_Photosmart_D5300_series.print_evenpages
    true
    print.printer_HP_Photosmart_D5300_series.print_footercenter
    print.printer_HP_Photosmart_D5300_series.print_footerleft
    &PT
    print.printer_HP_Photosmart_D5300_series.print_footerright
    &D
    print.printer_HP_Photosmart_D5300_series.print_headercenter
    print.printer_HP_Photosmart_D5300_series.print_headerleft
    &T
    print.printer_HP_Photosmart_D5300_series.print_headerright
    &U
    print.printer_HP_Photosmart_D5300_series.print_in_color
    true
    print.printer_HP_Photosmart_D5300_series.print_margin_bottom
    0.5
    print.printer_HP_Photosmart_D5300_series.print_margin_left
    0.5
    print.printer_HP_Photosmart_D5300_series.print_margin_right
    0.5
    print.printer_HP_Photosmart_D5300_series.print_margin_top
    0.5
    print.printer_HP_Photosmart_D5300_series.print_oddpages
    true
    print.printer_HP_Photosmart_D5300_series.print_orientation
    0
    print.printer_HP_Photosmart_D5300_series.print_pagedelay
    500
    print.printer_HP_Photosmart_D5300_series.print_paper_data
    9
    print.printer_HP_Photosmart_D5300_series.print_paper_height
    11.00
    print.printer_HP_Photosmart_D5300_series.print_paper_size_type
    0
    print.printer_HP_Photosmart_D5300_series.print_paper_size_unit
    1
    print.printer_HP_Photosmart_D5300_series.print_paper_width
    8.50
    print.printer_HP_Photosmart_D5300_series.print_reversed
    false
    print.printer_HP_Photosmart_D5300_series.print_scaling
    1.00
    print.printer_HP_Photosmart_D5300_series.print_shrink_to_fit
    true
    print.printer_HP_Photosmart_D5300_series.print_to_file
    false
    print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_bottom
    0
    print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_left
    0
    print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_right
    0
    print.printer_HP_Photosmart_D5300_series.print_unwriteable_margin_top
    0
    privacy.sanitize.migrateFx3Prefs
    true
    security.warn_viewing_mixed
    false
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows Vista
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-npdivxplayerplugin
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *6.0.12.732
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Shockwave Flash 10.0 r45
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *iTunes Detector Plug-in
    *DivX Web Player version 2.0.0.254
    *GEPlugin
    *4.0.50524.0
    *Office Live Update v1.4
    *NPWLPG
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *RealPlayer(tm) HTML5VideoShim Plug-In
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers

    Mark Leary:
    As TXGuy posted above:
    See:
    https://support.mozilla.com/en-US/kb/Unexpected+installation+error+-203+when+installing+add-ons
    http://kb.mozillazine.org/Unable_to_install_themes_or_extensions_-_Firefox#Unexpected_installation_error_-203
    Also see:
    http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile
    http://kb.mozillazine.org/Show_hidden_files_and_folders

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • How can I read the bootstrap files and extract the fragment-URLs and fragment-numbers in plain text?

    How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text?
    Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh  f4fpackager.exe? Could not find any download for f4fpackager.exe. I would prefere less code to do so. Is there something in Java of JavaScript, that can extract the fragment-numbers?
    Thank you!

    Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
    Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.

  • How to go for the Log Polar Conversion of the image.

    How to go for the Log Polar Conversion of the image.

    Hi,
    I'm not sure if you mean using the polar plot vi, but if so there is an example shipped with LabVIEW. Go to Example Finder and search for 'polar', and you should find Polar Plot Demo.vi. Also, here are some useful links:
    Link 1
    Link 2
    Hope this helps!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • How can I read the trace data from Agilent(HP​)8510C in C++ using NI488.2 and PCI-GPIB ?

    Hello! I am trying to develop an application in C++ for measurements with Agilent(HP) 8510C network analyser using NI488.2 and National Instrument's PCI-GPIB card. In HPBASIC the trace data is read using OUTPDATA command which contains PREAMBLE, SIZE and then the data string in real and imaginary pair for the required points. The ibrd function gives data only for one point. Kindly guide me how I can read the whole trace and and separate out the real and imaginary data values. Regards, kapil

    Hey Kapil,
    It seems that in HPBASIC you were using an instrument driver for the 8510C. OUTPDATA is not a native HPBASIC function. National Instrument has similar instrument drivers for LabVIEW and CVI.
    http://zone.ni.com/idnet97.nsf/9b2b33e1993d8777862​56436006ec498/7b235254f3881ddb862568ab005fbd2e?Ope​nDocument
    http://zone.ni.com/idnet97.nsf/9b2b33e1993d8777862​56436006ec498/24ca7db880ab78ae862568ab005fbc0f?Ope​nDocument
    For example in the CVI instrument driver you will find a source file called hp8510.c. In the source code you will find a function called hp8510c_dataInRaw that sounds similar to the function that you described.
    Note that this example is designed for CVI, but it is possible that you could extract the information you need for C++. If
    you had a copy of CVI you could just add the files downloaded from the instrument driver to a project and then compile and run the project. It already contains a ready to run example that allows you to capture data and use your instrument.
    If you want try CVI you can download an evaluation copy on-line at http://ni.com/lwcvi/launch.htm.
    I hope this helps out,
    JoshuaP
    National Instruments

  • How can I read the printer snapshot file printers.xml

    How can I read the printer snapshot file printers.xml

    XML files are typically viewed using a web browser.
    Open the XML file and the default program should open it automatically.  If you are prompted to select a program, use the option that lets you choose a program and brows through the directories for your browser (for example, use Internet Explorer, Firefox, etc.).
    If need be, you should be able to right-click the file and select open with to choose the program to open it with.
    There are other XML viewers out ther, but web browsers are typically the default as XML is a web language.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • SapScript, How do I read the current line number?

    I have sections of text - each in it's own element with an 'include' of the standard text.
    These sections are variable in size.
    All elements are in the MAIN window.
    I do not want a paragraph to split over two pages.
    How do I read the current line number within the sapscript before the section prints so I can issue a new-page command at the beginning of the paragraph?
    Thanks!

    Yes, that does work for paragraphs.
    If I have multiple elements to print from within a loop where "at first, at each and at last" each call the Sapscript funtcion write_form - how can I keep the whole section together.  protect/endprotect will keep each element together but not the group of elements.
    There must be a way to find the current line number.

  • How can I read the EXCEL file while Program is running in background.

    Hi all Expert,
    How can I read the EXCEL file while Program is running in background.
    Thanks

    you need to place ur excel file on application server and follow this thread: Reading an Excel file from the application server?
    loots of information if you can search forum.. thanks

  • How do I read the selected value of a comboBox?

    I need to send the selected value of a comboBox in an HTTPService request. How do I read the selected value (not label or item or index) from the comboBox?

    > (not label or item or index)
    I suspect 'item' is what you need actually. Specifically the 'selectedItem' property which returns the whole of the selected object from your dataprovider. From that you can then extract the selected object's properties.
    e.g.  selectedValue = myComboBox.selectedItem.value;
    The example in tour-de-flex shows this - note:  'data' in that example is i think what you call 'value'.
    http://tourdeflex.adobe.com/flex4.0/ComboBox/sample.html  (right-click to view source)
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/suppor tClasses/ListBase.html#selectedItem
    hth
    Paul Evans
    http://www.creative-cognition.co.uk/
    http://blog.creacog.co.uk/

  • How can i read the data fromtext fieldsin the form of bytes??

    Hi friends,
    How can i read the data fromtext fieldsin the form of byte string while using Socket connection.
    I have two text fields. i need to send the data from the textfeilds to the server using a byte string.
    Can anyboday help me???
    KK

    Does <cfdbinfo> work for Access DBs?
    You might be better off asking this on a MS Access forum.  It's more of an Access issue than a CF one.
    Adam

  • How can I read the trace data into LabVIEW for E5071B

    HI 
    I am setting up the measurement using vector network analyzer (VNA) E5071B controlled by NI 488.2. How can I read the trace data into LabVIEW and display on the graph? If anyone having an idea or know well about this process please give me the suggestion, I will much appreciate it.
    Many Thanks

    You want to start with the driver
     In case you do not know it, you can do the driver search in LabVIEW from Tools>Instrumentation>Find Instrument Drivers. You might also want to bookmark the Instrument Driver Network for information on what a driver is and how to use it.

  • How can I read the image from database into form

    hi everyone
    if I have table like this
    create table test
    (id number(10),
    pic long raw);
    in this table record
    in form If I have block non database
    how can i read the image into non database item
    I try with this code but no good
    select pic into :photo from test where id=5;
    photo its non database item kind image
    how can i invoke image into item
    thanks alooooooot

    Hello,
    You can't select image with select query. You need to create another database block from test table which has item binds with database pic column. Now in where condition in test block's property you have to write id=5. Change test block's properties UPDATE ALLOWED, INSERT ALLOWED, DELETE ALLOWED to NO. Only Query allowed property set to YES.
    Now in your particular trigger write the code
    GO_BLOCK('test');
    Execute_Query;
    please mark if it help you or correct
    Regards,
    Danish

  • How do you read the camera position in the 3d picture control?

    Hello,
    There is a method to setup the camera position, but how do you read the current camera position?  e.g. the user uses the mouse, ctrl, and shift, to change the camera position.  How do you read this new camera position?  There don't seem to be any properties to do this.
    I've read this thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=214629&requireLogin=False
    but the question was never answered....
    From the comments in that thread, even if you had the proper documentation for the "Model Matrix" property, you couldn't get the information necessary to calculation the camera position.

    Lorielle,
    Thanks for the VI.
    Could you point me towards a more detailed description of the "Modelview Matrix" property?  I've attached a screenshot from the online help.  It is not very helpful.
    Attachments:
    Modelview Matrix.jpg ‏71 KB
    Modelview Matrix1.jpg ‏71 KB

Maybe you are looking for

  • Another PDF question

    Hi I am trying to add a pdf to am iWeb site. I have tried adding it to a n]media file, but I must be doing something wrong can you please help. Thanks Paul

  • JIMI Displaying TIFs

    I'm trying to display a TIF file using the JIMI API. I'm getting the file in through a Byte[] and converting to image and then adding the image to a JimiCanvas, but its not displaying at all. Heres my code so far:                 //Receiving         

  • Can't install mac os 10.4

    I recently purchased a 17" imac g5 on ebay. The logon is password protected and when I try to install the original software I am prompted with "Alert, This software cannot be installed on this computer." When prompted to choose a startup disk, I see

  • Get error messages on mlb.tv

    Whenever I try to watch a game on mlb.tv on my apple TV, I keep gettting "An error occured while loading this content." I checked my receipt to ensre that 'd subscribed for the full season. I had. And then I tried a restart. And that didn't work. Can

  • Help unable to host/join games on network

    I am trying to play diablo 2 with my wife and she is unable to conect to my computer i have set my comp to dmz and still nothing forworded all ports needed for diablo 2 to run i have my comp set to auto DHCP i have alwasys had problems with my hardwi