Can retrieve users from some sub OUs and from other sub OUs cann't

hi,
I am using Windows 2003 Active Directory Server and Jndi to access that in my application. I am using follwing code to retrieve all Users from a aprticular OU.
ctx = new InitialDirContext(environment);
SearchControls ctls = new SearchControls();
ctls.setSearchScope(2);
String attrs[] = {
"sn", "givenName", "userPrincipalName"
ctls.setReturningAttributes(attrs);
String filter = "(&(objectClass=*))";
String serachCriteria[] = {"User Container", "Admin Leads,OU=Administration,OU=User Container"};
for(int i = 0; i < serachCriteria.length; i++)
StringBuffer searchString = new StringBuffer("OU=");
searchString.append(serachCriteria);
searchString.append(",DC=india,DC=mycompany,DC=com");
for(NamingEnumeration answer = ctx.search(searchString.toString(), filter, ctls); answer.hasMoreElements();)
SearchResult searchResult = (SearchResult)answer.next();
....................and so on
as can be observed in the bold text above, I have to specify the path of sub OU to retrieve users under that. Whereas apart from this sub OU, it is retrieving users from others sub OUs. The problem is, the code can access users from some OUs but not from other sub OUs
Can anybody help?
regards,
Zaid

Active Directory has a very rich access control model.
Perhaps it may not have occurred to you, that you do not have list access rights to the child3 & child9 organizational units ?
You may have access rights to all the leaf objects contained in child3 & child9, which explains why you can retrieve all the leaf objects when you explicitly bind to them, however you may not have list access rights to child3 & child9 which explains why you can't bind to it when iterating through parent1.
What happens if you simply perform a one level search on parent1, using a filter (objectClass=organizationalUnit) ?
If it doesn't retrieve child3 & child9, then perhaps you do not have list access rights for those two ou's.

Similar Messages

  • Org Tech Admin can add user from other org?

    We are currently on a trial run with CIAC, and I am testing User Management with a Organization Tech Admin account (OTA).
    To my suprise, when adding user and select "existing user", I can see every account currently on Cloud Portal, and even successfully add user from other organization to my orgnization.
    Is there anyway so that OTA can see only the users in their own organization?

    I've been able to remove the admin role from a site administrator with an OTA.
    I know there are issues when you log with an user then logout and relog with another user, CIAC considers that you are still the previous user (I've encountered the issue several times in portlets in the nsapi requests). I don't know if/how those issues are related, but I'd say that logout/login issue were an user has the same rights than the previous users should be fixed.
    Changing OTA rights will not change that particular issue.
    For the moment, what we've done is create our own servlet for requests to the sql DB, and our own roles for most services.
    Let's see what v4 has in store for us.

  • LDAP authentication in AD (users from other trusted domain)

    Hi
    I have two domain: my - DOMAINA.LOCAL and other trusted - DOMAINB.LOCAL
    I use LDAP authentication in AD for authentication users (AnyConnect).
    Now, I need to authenticate few users from other trusted domain (DOMAINB.LOCAL).
    I do not want direct connect with the domain contoller in the trusted domain.
    My domain controller (DOMAINA.LOCAL), can authenticate users from other trusted domain (if I use username "DOMAINB\userindomainb"), if I try to connect by RDP client to some server (for example, to my domain controller).
    But if I try to test aaa-server authentication from ASA
    I get error.
    I think, I must use username like "DOMAINB\userindomainb" but this not work.
    Help me please.
    Thanks!
    My config:
    aaa-server ADA protocol ldap
    aaa-server ADA (inside) host 10.0.0.1
     ldap-base-dn dc=domaina, dc=local
     ldap-scope subtree
     ldap-naming-attribute sAMAccountName
     ldap-login-password *****
     ldap-login-dn cn=Cisco ASA, ou=ServiceAccounts, ou=Services, dc=domaina, dc=local
     server-type microsoft

    Hello!
    I see in console (debug LDAP):
    Request for [email protected] returned code (10) Referral
    Does ASA support authentication via LDAP referrals?
    I read old thread:
    https://supportforums.cisco.com/discussion/11132591/cisco-asa-and-ldap-authentification
    And see: CSCsj32153  Symptom:the ASA/PIX doesn't currently support LDAP Referall searches. 
    But I use:
    Cisco Adaptive Security Appliance Software Version 9.2(3)
    Device Manager Version 7.3(3)
    Compiled on Mon 15-Dec-14 05:10 PST by builders
    System image file is "disk0:/asa923-smp-k8.bin"
    Thanks!

  • Unable to open templates from server input form folder and server root folder from some system while the same can be open from others system

    Hi,
    I am unable to open input scheduled from server root folder and also from input form folder on some system while they can be open from others system.
    Please advice.
    Thanks in advance

    Hi Hengye,
    While opening , it dont give any error. When I try to open it , it takes some time to load then nothing happen.However I can open it on other system but not on mine my collegue and user system.
    Please advice.
    Thanks.

  • I am logged on to a wifi and can see files from other users on this network.  Can they see my files as well?

    I am logged on to a wifi and can see files from other users on this network.  Can they see my files as well?

    Yes and no. It depends on your settings.
    Go into "System Preference" and click on "Sharing"
    If you have services checked such as "File Sharing" then others can see your computer on the network. But you really don't need to worry because others would need your username and password to have access to your files.
    What you see are just computers annousing themselfs on the network. To have access to said computers, Username and Passwords are required.
    Hope this helps

  • HT1752 Hello, I updated my MacBook with OS X and lost all my photos (about 7 years of photos) on iphoto (now empty). Are they completely lost or is there a way I can retrieve them from my computer?

    Hello, I updated my MacBook with OS X and lost all my photos (about 7 years of photos) on iphoto (now empty). Are they completely lost or is there a way I can retrieve them from my computer?

    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • I cannot send email - error message as follows : 'The sender address (my email address) was rejected by the server smtp.tiscali.co.uk.' I can send email from other apple devices, and the email settings are identical. Any ideas?

    For some reason I cannot send email - all was working fine, but now I get the following error message when I try to send email:
    'The sender address (my email address) was rejected by the server smtp.tiscali.co.uk'
    I can receive incoming mail ok and I can send email from other Apple devices. The problem seems confined to my Mac Book Pro.
    Ant ideas?

    Hello there, Pablo639.
    The following Knowledge Base article offers up some great steps for troubleshooting mail issues on your Mac:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • My mum is always using my iPad and I want to set mode if you like that she can log in as some one different and use apps she likes and I can use a diFferent log in and use different apps and stuff

    My mum is always using my iPad and I want to set mode if you like that she can log in as some one different and use apps she likes and I can use a diFferent log in and use different apps and stuff

    iOS 7 does not support multiple user accounts like you want.
    If all the apps are different, you could set her up with her own page of apps, then just show her how to get to her apps page, or just buy her an iPad for herself.

  • Hi. I have a MacBook Pro with OS10.6.8 and cannot get net pages to load on my network at home. I can connect to the internet in work and on other networks. However, some other networks are now starting to fail. Can anyone suggets how I can fix it??

    Hi. I have a MacBook Pro with OS10.6.8 and cannot get internet pages to load on my WiFi network at home. My iMac, iPhone and iPad all work on this network.  It is connected to the net as dropbox registers a connection and so does skype. I can connect to the WiFi in work and on other networks when travelling. However, some other networks are now starting to fail. Can anyone suggets how I can fix it, as the MBP appears to be fine, its updated with all the latest versions of software and the WiFi network is also fine....just not with my MBP??

    Hi. I have a MacBook Pro with OS10.6.8 and cannot get internet pages to load on my WiFi network at home. My iMac, iPhone and iPad all work on this network.  It is connected to the net as dropbox registers a connection and so does skype. I can connect to the WiFi in work and on other networks when travelling. However, some other networks are now starting to fail. Can anyone suggets how I can fix it, as the MBP appears to be fine, its updated with all the latest versions of software and the WiFi network is also fine....just not with my MBP??

  • I know I can retrieve voicemails from callers I have blocked but is there anyway to retrieve imessages from blocked callers?

    I know I can retrieve voicemails from callers I have blocked but is there anyway to retrieve imessages that were sent while a caller was blocked?

    No.

  • Where i can buy the keyboard for garage? and what other else has to buy to start my garageband?

    Where i can buy the keyboard for garage? and what other else has to buy to start my garageband? I am a beginner for garageband. Thanks.

    I second the M-Audio recommendation.  I have the Oxygen 8 and 61es keyboards from them, and they both work flawlessly with Garageband.
    what other else has to buy to start my garageband?
    This depends on what you want to do with Garageband.  Do you want to record with a keyboard only and just use Garageband's built-in software instruments? Do you want to record vocals? Do you want to record a guitar or bass or other instrument?  Do you want to record drums?
    Technically, you don't even need a keyboard to use Garageband, you could just use the software keyboard (Window -> Keyboard) or musical typing (Window-> Musical Typing).  However, an external keyboard will give you a lot more flexibility.  I don't recommend trying to record drums into Garageband unless you already know how to mic drums.  Instead use the built-in drum kit software instruments with your keyboard.
    Your iMac has a built-in mic, so you should be ok recording vocals with that.
    If you want to record an acoustic guitar or another acoustic instrument, you can also use the built-in mic though you may find that you don't like the way it sounds very much since built-in mics tend to pick up lots of noise from the computer itself. 
    If you want to record an electric guitar or bass, you can just plug in the line out on your instrument to the line in port on your iMac, but you won't get really good results.  You'd be better off geting a piece of hardware called an audio interface  Sweetwater sells these too:  http://www.sweetwater.com/shop/computer-audio/audio_interfaces/ (USB and Firewire interfaces are easiest to start with.)  M-Audio also has some good cheap interfaces.  I've used the FastTrack Pro for a few years now, and I started out with the FastTrack USB.
    Ok, that's probably more than you wanted to know...happy Garageband-ing!

  • Migrating users from other partitions

    I'm dealing with "Epic Stupid" in how Apple handles something in 10.4.
    My hard drive developed a few bad blocks. It's becoming unusable because apparently those bad blocks are directly under certain key files, because it's hard to do much without getting "stun locked" by the gorram beach ball.
    Anyway, my disk has a second partition on it which was unused. I went ahead and formatted that partition, wrote the partition with zeros (which I hope had the effect of flagging all bad blocks), and installed OS X 10.4.10 from the DVD's.
    Naturally the system comes up and treats me like I'm a completely new user of MacOS. It allows me to import users from other partitions -- but here's the problem. It wants to migrate the users, which would be great for preserving disk permissions - but then it wants to COPY ALL THEIR DATA. That's ridiculous. Their data is already on the other partition. I want to copy the identities but not all their data.
    How am I supposed to do that? Import the user identities and tie it back to the UID that's on the other partition so <user X> can access <user X>'s data?
    By the way, other than that, putting the boot OS on the new partition is working great. No beach balls unless I touch the other partition.

    Yeah I know Virtually all of my data is copied off already. I say "virtually" because the backup was piecemeal, and I'm
    a) not 100% sure I got everything and
    b) not looking forward to hand-reassembling my entire environment from scratch. I.E. I don't relish reloading all my songs into iTunes and resetting play counts to zero, having it forget which podcasts I've listened to, etc. etc.
    I would prefer if possible to get one "coherent" backup and it appears the problem partition is no longer reliably bootable.

  • I have problems with syncing my events folders från MacBookAir to Ipad2. Some pictures show and not others?

    I have problems with syncing my events folders från MacBookAir to Ipad2. Some pictures show and not others?
    Anyone else having this problem?

    Try deleting the photo cache from your computer and then re-try the photo sync and see if they then copy over - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314

  • When i use head phones i can hear sound from other people in the room

    when i use head phones i can hear sound from other people in the room

    Can you please tell us which notebook model do you have?
    Is some sound manager preinstalled on your notebook? You can find it in control panel. Is there something like Realtek sound manager?

  • I have an i phone 3 g . i want to udate it to latest os . can i update from other pc also ?,

    have an i phone 3 g . i want to udate it to latest os . can i update from other pc also ?, if answer is yes then if after getting update from other pc i will switch to my older pc then latest softer which i have updated will remain or it will switc over to older software?

    If you update from another computer you may lose some of your content.
    If your computer does not have the latest itunes then it will not worl with the iphone at all once you update it.
    Why do you want to update from another computer?

Maybe you are looking for

  • Java applet will not install in browser

    My VI will not install a JAva Applet. I jsut keeps saying "Installing Java Applet" and it never prompts for an install or anything. Any ideas? Is there something extra that I need to do that I am not realizing? I attached a screenshot of the window w

  • My business doesn't show on your map Apple!

    Fix it, or give me back google map.

  • How to read the blob column?

    Hi, i wanted to store the zip file in a blob column and i also want to download the file i have tried in the following manner -- Creation of the table create table demo ( ID int, theblob blob); --insert the zip file into the table declare l_blob blob

  • Multiple currency conversion via one variable possible?

    Hello, following problem: I have a report which contains different currencies (e.g. EUR, CHF, etc.). In this report we have different calculated key figures (on cube level). Each key figure have different currency conversion (maintained in rrc1). Que

  • Jndi connection problem

    I am trying to use oracle's proxy connection in order to connect to the Database, for security reasons. Now the problem is that for the purpose of doing so you have to use oracle.jdbc.OracleConnection. The container I am running on is JBoss and when