Logged in windows username cant be searched in LDAP tree on Windows 2000 AD

That is my active directory of my TEST Windows 2000 server:
http://img248.imageshack.us/img248/918/adwn6.gif
On the image yu will find 4 schools with shortcut names called:
OU=ASR
OU=EDS
OU=EKS (EK school for example)
OU=THS (TH school for example)
Under every OU="shortcut of schoolname" you will find also the
OU=Klassen (Klassen = classes in english)
OU=Lehrer (Lehrer = teacher in english)
again under every OU="class" and OU="teacher" you will find also the
pupils and teachers.
the teacher "verena bit" is located in:
"CN=verena bit,OU=Lehrer,OU=ASR,DC=Bodensee,DC=DE"
On the REAL Windows 2000 server used in production i have about 17 schools like OU=ASR or OU=EDS and so on...
My part aim for the first...:
With Java code: String Lehrer = System.getProperty("user.name");
I can retrieve the name of the teacher (Lehrer = teacher) who has logged into the Windows client. The problem is i get for example a String like
"verenabit" but in the ldap hierarchy all common names are for example like this: cn="verena bit" they have always a " " gap between the forename and the lastname so I can not use the String "verenabit" to search for it in the ldap tree as she would not exist right?
What i finally want is to find out the OU="shortcut of schoolname" (see above) by searching for the logged in teacher. So when i have OU="shortcut of schoolname" of the teacher i am able to read ONLY the usernames(teachers+pupils) of that specific school and not all teacher+pupils of all 17 schools what would be about 8000 users :-D
Can someone help me please how can i use the username of the logged in windows user and search him effectively in the ldap tree on my test windows 2000 server.
Steven you want all my points? ROFL ;-)

Here's a hint.
Use a generic ldap tool (for example ldp.exe which is
included in Windows Server, or whatever your
favourite ldap browser is, and find the object in the
Active Directory that corresponds to the user named
Verna Bit.
Believe it or not, you will find an attribute which
has matching value to that returned from
System.getProperty("user.name");Then you just need to construct the relevant LDAP
Query Filter.
It ain't rocket science !
Good luck.Yes i already use ldp.exe i installed it from the win2k server CD its a great tool :)
hm your hint is odd or how can i say dont know wether you really understood me, because what you suggested to me is actually what i doubted that it could work. Seems you have more faith??
The problem is (not sure wether you really understood me...) that when i search the whole Directory having 8000 user, I could search for teachers only which are in OU=Lehrer (Lehrer = teacher) and just go one childnode down but "verena bit" IS NOT "verenabit". I cannot search for the username verenatbit as i wont get any result as it does not exist.

Similar Messages

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Get logged on windows username

    Hi,
    I have a tomcat server running my webapps.
    And I need a way to retrieve the username of user(client) currently logged on(windows) .
    Any help will be great.
    Thanks

    this is all that you need copy the code and save it as a .jsp file
    <%@ page import="sun.misc.BASE64Encoder,java.util.regex.*" %>
    <p><h1>Network Windows USERNAME without any login (ie)</h1></p>
    <%
    String auth = request.getHeader("Authorization");
    if (auth == null) {
            response.setStatus(response.SC_UNAUTHORIZED);
            response.setHeader("WWW-Authenticate", "NTLM");
            return;
    if (auth.startsWith("NTLM ")) {
            byte[] msg = new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
            int off = 0, length, offset;
            String s;
            if (msg[8] == 1) {
                off = 18;
                byte z = 0;
                byte[] msg1 = {(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S',
                                (byte)'S', (byte)'P', z,
                                (byte)2, z, z, z, z, z, z, z,
                                (byte)40, z, z, z, (byte)1, (byte)130, z, z,
                                z, (byte)2, (byte)2, (byte)2, z, z, z, z, //
                                z, z, z, z, z, z, z, z};
                response.setStatus(response.SC_UNAUTHORIZED);
                response.setHeader("WWW-Authenticate", "NTLM "
                      + new sun.misc.BASE64Encoder().encodeBuffer(msg1).trim());
                return;
            else if (msg[8] == 3) {
                    off = 30;
                    length = msg[off+17]*256 + msg[off+16];
                    offset = msg[off+19]*256 + msg[off+18];
                    s = new String(msg, offset, length);
                    //out.println(s + " ");
            else
                    return;
            length = msg[off+1]*256 + msg[off];
            offset = msg[off+3]*256 + msg[off+2];
            s = new String(msg, offset, length);
            //out.println(s + " ");
            length = msg[off+9]*256 + msg[off+8];
            offset = msg[off+11]*256 + msg[off+10];
            s = new String(msg, offset, length);
              Pattern pat = Pattern.compile("[a-z,A-Z,0-9]+");
              Matcher mat = pat.matcher(s);
              String s1 = "";
              while(mat.find())
                             System.out.println("Got name: "+mat.group());
                             s1 = s1+mat.group();
              System.out.println("Got name: "+s1);
              if(s.indexOf('.')!=-1)
                   System.out.println("dots!!!");
              s.replaceAll("[.]","");
              System.out.println("Got name again: "+s);
            out.println(s);
            out.println("Hello  <span style='position:relative; width:190;"
                + " height:10;filter:glow(Color=#009966,Strength=1)'>");
            out.println(s + "</SPAN>");
              out.println("<br><br><b>"+s+"</b>");
    %></BODY>

  • File search on Server 2008 using Windows 7 workstation

    Trying to get Windows 7 clients to search a network file share using the search index on the file server, but doesnt seem to be working.
    My setup is: Windows Storage Server Standard 2008 (not R2), Windows 7 Standard workstation with mapped network drive pointing to file share on Storage Server. File Server role is installed on server as well as Windows Search Service, but when I run a test
    search on the server, I get entirely different results from running a test search on the Windows 7 client.
    I've heard of setting the file share to enable "Offline Mode" on the client workstation to allow the workstation to index the share, but I cant have every workstation downloading and indexing a copy of our file share (hundreds of gigabytes). I
    tried adding the mapped network drive to the Windows 7 Document Library, but I get the error message saying that the location cant be added because it's not indexed. Suggestions?
    Shaun

    Hi Shaun,
    First please check if Windows Search 4.0 could be installed on your server - it is for Windows Server 2008 so it may not able to be installed on a Windows Storage Server 2008.
    http://support.microsoft.com/kb/940157/en-us
    For remote indexing please see the Remote Query part of the following article:
    http://technet.microsoft.com/en-us/library/cc772446(v=ws.10).aspx
    Remote Query
    Windows Search 4.0 extends the ability to search across remote desktops. Previously, only Windows Vista users could query recognizable indexes on remote Vista computers; now, WS4 enables users to query remote computers running any supported operating system.
    Remote querying includes the following features:
    Queries work across all supported OSes (Windows XP, Server 2003, Home Server, and Vista). 
    All shared NTFS folders are automatically indexed (excludes all FAT file systems).
    All shared, and therefore indexed, locations can be remotely queried.
    The location on the remote computer must be shared and it must be indexed. With Group Policy, administrators can control whether shared locations are automatically indexed.
    If you have any feedback on our support, please send to [email protected]

  • Why cant i search for artists in my itunes search area?

    why cant i search for music/artists in my itunes search area when i'm logged on to itunes?

    I should be more specific, I live in the USA, Type Disney into the search and then go to movies, you will see a list of Disney movies.
    BUT that is not all the Disney films on Itunes.
    The Majority of Disney films that are available on Itunes do not show up when searching the word Disney.
    You have to look them up individualy by name. For Example: Darby O'Gill and the little People, Pocahantas 2, Atlantis: Milo's return, Ducktales the Movie, The Sword in the Stone, The Rescuers Down Under.
    All of these and MANY more do not come up when you search for Disney or Disney movies.
    Why?

  • How to get the windows username in jsx

    Hello,
    I have a JSX script in "My Documents\Adobe Scripts" to make it trusted script. I have another text file I need to read from JSX. Since the location depends on logged in user, I need to find the windows username. If anyone know how to get the windows username from jsx please reply.
    Thank you very much.
    Regards
    Nima.

    Hey,
    You can get username like this:
    var myUsername = $.getenv('username');
    You could also get My Documents folder like this:
    var myDocFolder = Folder.myDocuments;
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com/

  • How get windows username

    Hi,
    In my java application I have following code to get windows username-
    *<%*
    String s1 = System.getProperty("user.name");
    out.println("The Username : "+s1+" ");
    String s2 = System.getenv("USERNAME");
    out.println("The Username : "+s2);
    *%>*
    If I log in to my PC and execute it I get correct output for both the statements, But when I execute it on server machine(when I logged in) I get the output as-
    The Username : SYSTEM The Username : null
    I use Apache Tomcat 5.5 to run the jsp on both (PC & server) machines. One small difference is I use eclipse on my PC and I don't use eclipse on server (I think it doesn't matter).
    But when I use the same code inside a java class I get correct output on both (PC & server) machines.
    Can any one solve my problem.
    Thanks in advance,
    Tiijnar

    tiijnar wrote:
    Hi BalusC,
    Thanks for the reply.
    Could you please be more elaborted on this. What I mean is- can you provide me the code for the applet.Just the same code. Use System#getProperty() in an applet. The only difference is that the applet runs at the client machine and the Java web application runs at the server machine. If your problem is rather that you don't know how to use applets, just check the applet tutorial here at sun.com. Google can find it.
    Moreover when I execute jsp on my PC, I execute it on localhost (a server inside my PC). I face the problem when I host my application on my server machine.D'oh. On "localhost" the client and the server are physically on the same machine.

  • Jabber for Windows - wildcard search against LDAP directory

    Hi all,
    I have set up an on premise environment with CUCM, CUPS and a 3rd party LDAP Directory. For CUPC everything is working fine. For Jabber for Windows it took me some time to find the correct jabber-config.xml settings to make it working.
    At the moment I am able to search the LDAP Directory, but I have to write the complete Name, i.e. "Miller, John", in the search field. If I try it with "Miller" only, I get no results for my search.
    I played arround with the  <UseWildcards>0</UseWildcards>  tag without any changes in the behaviour.
    Is there anybody who can help?
    Best regards
    Manfred

    Hi Manfred,
    Jabber for Windows has been tested with following directory services:
    Supported Directories
    Microsoft Active Directory  2003
    Microsoft Active Directory  2008
    Cisco Unified Communications Manager User Data Service UDS  is supported on Cisco Unified Communications Manager version 8.6.2 or later.
    OpenLDAP
    The behavior you are seeing could be related to interop issues. I suggest to open a TAC case for further assistance.
    Thanks,
    Maqsood

  • I recently upgraded to the latest version of FF and now when using a webmail client I am routinely logged out when I try to search e-mail. Why? I go to IE and it works... but, I hate IE.

    I recently upgraded to the latest version of FF and now when using a webmail client I am routinely logged out when I try to search e-mail. It works in IE, but I don't like or want to use IE.
    == This happened ==
    Every time Firefox opened
    == Today

    Unstable means it can vary in stability day by day as it can be crash prone to being stable. Features can be a work in progress for a while. The May 24 Nighty build was crash prone for a lot of testers for example.

  • How to display check box in the search help restriction pop-up window

    Hi Experts,
    I have created one searc help with dialog value restrictions. Search help contains 4 fields.
    Out of which one field has length one character.
    As oon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 4 fields.
    I would like to show that field ( one character length field) as check box in search help restrictions pop-up window.
    Pls help me ,... How can we acheive this..
    Thanks
    Raghu

    Ur Exact Requirement,
    Types : begin of itab,
         fields type c,
         Check type c,(For Check Box)
         end of itab.
    data it_tab type standard table of itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_input-low.(If it is in select-options)
      CLEAR  v_input.
      GET CURSOR FIELD s_input VALUE  v_input.
      CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
        EXPORTING
          i_input  = v_input
          i_langu  = sy-langu
        IMPORTING
          e_output = v_input.
      CLEAR s_input-low.
      IF v_input NE '' .
        IF v_input NE '?'..
          v_input1-sign = 'I'.
          v_input1-option = 'CP'.
          v_input1-low = v_input.
          APPEND v_input1.
        ENDIF.
      ENDIF.
    SELECT DISTINCT   Field
                      FROM Table
                      INTO TABLE it_tab
                      WHERE field IN v_input.
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
              EXPORTING
                i_title                 = 'Select Colors'
               i_selection             = 'X'
                i_zebra                 = 'X'
                i_screen_start_column   = 5
                i_screen_start_line     = 5
                i_screen_end_column     = 30
                i_screen_end_line       = 12
                i_checkbox_fieldname    = 'CHECK'
                i_tabname               = 'IT_TAB'
                i_scroll_to_sel_line    = 'X'
                it_fieldcat             = it_fieldcat1
                i_callback_program      = sy-repid
                i_callback_user_command = 'USER_COMMAND1'
              IMPORTING
                es_selfield             = selfield
              TABLES
                t_outtab                = it_tab
              EXCEPTIONS
                program_error           = 1.
    Cheers,
    Naveen

  • I cant access the root share of a windows server after upgrading to mountain lion

    Hi Guys,
    Since upgrading to mountain lion i cant access the shared drives on our windows server. For example in a windows machine if i go to run the type \\server\ i get all the visible shares available. in my previous version i was able to do the same (obviously i would authenticate with my AD account). now when i try to access those same shares i get the message below:
    "The operation cant be completed becuase the original item for "/" cant be found"
    I can however connect to the shares directly for example if i connect to server path \\server\data it works ok.
    I have verified my account details and they are ok - i have also disconnected and reconnected the connection.
    This was working fine before the upgrade. can anyone help??

    well iv just managed to get to 35 gig free (just deleting iphone backups) and im now able to get past the next screen on bootcamp.
    unfortunatly its only allowing me to create a new partition not delete the current.
    this is leading me to think the old ones master partition has become damaged and the hard drive dosent know it exists any more.
    if this is the case (please tell me im wrong though) what options do i have as i dont want to / have the money to buy another hard drive to back everything up to it with.
    thanks again
    gareth

  • I recently tried to remove widows7 on my macbook air using bootcamp and halfway through it grayed out .The windows 7 is removed but i cant free up the 62gig partition the windows was occupying on my 121gig ssd harddrive please help

    i recently tried to remove widows7 on my macbook air using bootcamp and halfway through it grayed out .The windows 7 is removed but i cant free up the 62gig partition the windows was occupying on my 121gig ssd harddrive please help

    You may have to see about using the Recovery HD partition to attempt to erase and restore useful function of the capacity lost to the former Windows installation.
    And you may have to backup your contents outside the computer to do it. Disk Utility on the Mac OS X historically has not been able to touch a BootCamp created partition; so if BootCamp cannot remove it, then you have to see how to do the equivalent of a reformat of the entire drive (less Recovery partition?) then reinstall your OS X. Maybe from internet recovery, then get your applications, etc from the Mac App store, etc.
    A complete system clone of your OS X on an external HDD would be another method to restore after reformat, of the portion you want whole again, not necessarily the space where Recovery may live.
    There may be (an)other way(s).
    Perhaps someone with recent experience
    in this matter can reply & discuss options.
    With my antiques, they almost know what I want before I tell them.
    Hopefully yours will after you talk to it awhile.
    Good luck & happy computing!

  • After downloading Namoroka 64 bit for windows 7 all my search engines are gone. What happened and how do I get them back?

    After downloading Namoroka 64 bit for windows 7 all my search engines are gone. What happened and how do I get them back?
    == This happened ==
    Every time Firefox opened
    == This week ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; FunWebProducts; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTB5.6)

    Do they appear if you start Firefox in Safe Mode? See [[Safe Mode]]

  • How can I log into two differant accounts at the same time in two windows without the second window affecting the first.

    I'm trying to log into two facebook accounts at the same time in differant windows. When ever I log into the second account in the second window it changes the login in the first window. When I hit home or any other link the first window account has been logged out and logged into the second window account. I tried installing a second copy of firefox in a differant folder that the first but it seems to use all the files of the first installation. If I can get 2 toatally seperated instalations that don't rely on the same history, cookies, cache, etc I belive that will solve my problem. Please help.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)

    Nah, that won't work. Facebook has a feature that gets your IP Address, so as soon as you sign into one on the same computer, it changes the other login for safety purposes (say, someone was on a public library PC. They forgot to log out. Someone else logs in, and it automatically logs them out). You'll need 2 computers to do that.

  • My iphone 5 is not syncing with my laptop and windows 8. cant find an itunes app for my laptop. is there something i can get that will help with this

    My iphone 5 is not syncing with my laptop and windows 8. cant find an itunes app for my laptop. is there something i can get that will help with this?

    Lbo51380 wrote:
    cant find an itunes app for my laptop. is there something i can get that will help with this?
    Go here -> http://www.apple.com/itunes/download/

Maybe you are looking for