Get User Names and Mail Ids present in Exchange Server

Hello All,
Can we get all the names and mail ids present in the exchange Server global address book?
I tried one example but it is giving error.
Exception in thread "main" javax.naming.CommunicationException: [LDAP: error
            code 2 - Protocol Error]; remaining name 's=satheesh'
Code is given below:
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://mailserver:389");
DirContext ctx = new InitialDirContext(env);
Attributes answer = ctx.getAttributes("s=satheesh");
Any example code to get user names and mail ids will be helpful.
Thanks in advance.
Regards,
Satheesh A
[email protected]

Hi Satheesh,
I am new to LDAP. I am facing the exact same problem as you mentioned. Did you solve your problem?
Thanks for any help you can provide.
Hello All,
Can we get all the names and mail ids present in the
exchange Server global address book?
I tried one example but it is giving error.
Exception in thread "main"
read "main" javax.naming.CommunicationException:
[LDAP: error
code 2 - Protocol Error]; remaining name
aining name 's=satheesh'
Code is given below:
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL,
"ldap://mailserver:389");
DirContext ctx = new InitialDirContext(env);
Attributes answer = ctx.getAttributes("s=satheesh");
Any example code to get user names and mail ids will
be helpful.
Thanks in advance.
Regards,
Satheesh A
[email protected]

Similar Messages

  • I using new ipad 32gb and i cant get user name and password how i configure it ? please give me solution

    im using new ipad 32gb and i cant get user name and password how i configure it ? please give me solution

    What do you mean 'can't get user name and password' ? What are you trying to do with your iPad and what happens when you do it ?

  • I lost my contacts and mail folders on my exchange server but they are still on my MAC. How can I resync?

    I run both a MAC and a PC with two different mail clients Entourage vs. Outlook. I have never had a problem with the clients syncing with the Exchange server until I did an archive of all emails in outlook that were older than this year. Now some subfolders have disapeared on the PC and the Exchange server but still show up in Entourage. How can I resync Entourage to the Exchange and have Exchange server "accept" the Entourage folders as correct?
    Also I use an Iphone and backup to the icloud. So why did my contacts disapear from the iphone and are not restored via icloud? The missing contacts also disapeared from exchange.
    Iphone 4s ver 5.1.1
    Exchange 2003
    MacBook Pro OSX 10.5.x ( I think - since the finder->about this Mac button doesnt work)
    Entourage 12.3.3
    Thanks so much.
    John

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622
    You cannot Delete from your Purchase history... But... you can Hide...
    iTunes Store  >   http://support.apple.com/kb/HT4919
    Note:
    iCloud only Stores a Link to your Apps...

  • How to get User Name and password to hyperion download center?

    Do only users who buy hyperion products have to right to access the website?

    Yes - you have to have purchased a product in order to download patches or new versions. Also, you have to pay maintenace in order to have access to new versions.This is not unusual for most software companies - some companies allow you to download a time-expiry trial of their software, but others required you to got through their sales channels in order to get an evaluation copy. Hyperion uses the latter approach.Regards,Jade-----------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • On Yahoo Mail...and ONLY Yahoo Mail..I get a 404 error after entering my user name and password. This doesn't happen with IE, just Firefox, and just Yahoo Mail. Yahoo was absouletly no help whatsoever; can you solve the mystery? Thanks

    On Yahoo Mail...and ONLY Yahoo Mail..I get a 404 error after entering my user name and password. This doesn't happen with IE, just Firefox, and just Yahoo Mail. I tried uninstalling and reinstalling FF; no change. Yahoo was absolutely no help whatsoever; can you solve the mystery? Thanks

    HI Emmet,
    thanks so much for your posts back. I really appreciate it and yes that does help to know that you could not get it working.
    I did have some success, in removing the SSL Authentication checkbox in the smtp server settings - I found that this allowed my friend to be able to send mail from the mail app via his sbcglobal (yahoo) account.
    So that did help but of course the messages do not have ssl encryption and I'm not sure how big a deal that is for an individual. He is able to receive mail but unless the SSL authentication box is unchecked, he cannot send.
    i hope that helps anyone out there also!
    Thanks also for the tip about sparrow - yes I have heard of it and it is very popular, he may end up using that in the end.    
    Thanks again, much appreciated.
    Felix    

  • HT204053 setting up my new ipad. under new account i cloud  imap where do i get by incomming mail server host,user name and password. will it also be the same infor for outgoing mail server

    setting up my new Ipad. Under icloud Incomming and outgoing server Where Do i get the host name,user name and password?

    It should setup email automatically when you enable it in your iCloud account.
    If not, here are the settings: http://support.apple.com/kb/HT4864

  • TS3276 Cannot send mail from my iPad...."user name and or password is incorrect"......mail can be sent from my iPhone

    Why do I get the message   "Cannot send mail, the user name and or password for my email outgoing server is incorrect"?  I use the same account, etc. on my iPhone and haven't any trouble sending mail.

    If your email requires a password for the SMTP server you can set it up in the settings in the General mail setup. Some i.e Gmail require a password for SMTP.
    Otherwise you will probably get better answers in the iPad forum.
    https://discussions.apple.com/community/ipad/using_ipad

  • HT204053 I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on

    I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on my iphone

    Quote: "You cannot merge two or more Apple IDs into a single one. You can, however, use one Apple ID for iCloud services and another Apple ID for store purchases (including iTunes in the Cloud and iTunes Match). See “Using one Apple ID for iCloud and a different Apple ID for Store Purchases” above for details." See also Apple ID & iCloud FAQ: http://support.apple.com/kb/HT4895?viewlocale=en_US&locale=en_US
    You can set up your iCloud account on your iOS device under: "Settings > iCloud" and a other account for store purchases under "Settings > iTunes & App Stores". Unfortunately merging accounts is not possible but you could transfer all of your music manually via iTunes from your Mac or PC.

  • I tried to share a photo using e-mail and when I set up my gmail account I typed in the wrong user name and password.  Now i can't share photos using e-mail.

    I tried to share a photo using e-mail and when i set up my gmail account I typed in the wrong user name and password.
    Now I can't send a photo because i get an error message saying the user name and password do not match.
    How do i save a new gmail user name and password??

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • When I enter my user name and password for my e-mail account, the page won't open

    My e-mail account page won't open after I enter my user name and password on the log-in page. I have vcrified with Suddenlink that my user name and password are correct.

    Thanks Peter.
    Partial success in that I have been able to get mails onto the iPad  - however....
    Progress from a previous 'rumage' on problem discussions.    I have succeded in setting up the iPad so that it receives emails from the sky address under 'MAIL' on the iPad.    However trying to open in the 'usual' way   -  safari - then sky  -  then email  -  enter user name and password  -  I get the same result  -  it just returns to the log in menu for sky email with user name and password blank. 
    I had a previous problem with the sky mail ceasing to show recent mails, frozen in time on the iPad.   Somehow by trying some reset instructions I was able to 'unlock' the iPad and all was OK until it 'froze' again.    This time I clearly screwed up attempts to unlock, resulting in not being able to access email accounts via the Sky site !!

  • Connecting to SMTP mail server using user name and password in java

    Hi,
    I am trying to send mail using SMTP server in java.
    But my SMTP server only allows valid users to send mails. I need a way to pass my user name and password to my SMTP server.
    How do I do this ?
    Thank you
    Ramesh

    I think the client is not able to do a HTTP POST
    to the WLS server but it can do a HTTP GET.
    I dont know why.
    http://manojc.com
    "Ganesh" <[email protected]> wrote in message
    news:3eba91bc$[email protected]..
    >
    Hi,
    I deployed a rpc web service using WLS 7.0 SP2 in HP-UX 11 environment.When I
    invoke the web service through my browser (IE 6.0) using the web servicesurl,
    it brings my service method correctly. From there, if I click the invokebutton
    it asks me for a network user name and password under "weblogic" realm???If I
    provide the admin user credentials (which I supplied while creating mydomain)
    it is not accepting that it keeps popping up this network user passwordwindow
    over and over. Not sure which username/password I have to provide here tosee
    the result of my service.
    If I try to invoke the web service through my client (static) I am gettinga connection
    refused exception. I guess either way, I am not able to access my webservice.
    In the attached file, I have cut and pasted the client stack trace as wellas
    the server log trace from weblogic.
    Any ideas would be highly appreciated.
    Thanks,
    Ganesh

  • Firefox will not save my user name and password for one of my sites. How can I fix this problem. It is getting annoying having to reenter every time I check this site. Is there a solution.

    I had my user name and password saved for my library site. My grandson hit something and now the saved user name and password are gone. It asks me every time to enter it and it is getting annoying. How do I fix this. I want Firefox to remember these codes.

    You can create a bookmark with the JavaScript code via a right-click on the "Remember Password" link on the squarefree.com website and choose "Bookmark This Link" and select the "Bookmarks Toolbar" as the destination folder for easy access.
    * https://www.squarefree.com/bookmarklets/forms.html#remember_password
    You need to use the "Remember Password" bookmarklet before or after filling the name and password field on the website with the <u>login form</u>, but before submitting the login form by clicking a button on the web page.
    If the site is using autocomplete="off" then you see a number not equal to 0 (i.e. attributes were removed) in the pop-up alert from the bookmarklet and Firefox should offer to remember the name and password via a drop down dialog of the key icon that will appear on the location bar (Firefox 4+) or via an info bar at the top (Firefox 3).

  • How can I get Firefox to run on a network with multiple users logging on with the same user name and password?

    I am trying to get Firefox running on a large network where I have multiple users that log on with the same user name and password. The problem is that when another user logs on to another computer the message comes up that their is already an instance of firefox running on that computer even though there really isn't. Only one instance can be run on the network at one time. I believe it is because firefox stores a shared profile as it thinks it is actually the same user even though it is being run on another computer. I repeat that each user that logs on uses the same user name and password but on different computers.

    I am trying to get Firefox running on a large network where I have multiple users that log on with the same user name and password. The problem is that when another user logs on to another computer the message comes up that their is already an instance of firefox running on that computer even though there really isn't. Only one instance can be run on the network at one time. I believe it is because firefox stores a shared profile as it thinks it is actually the same user even though it is being run on another computer. I repeat that each user that logs on uses the same user name and password but on different computers.

  • Trying to update my apps on the iPhone 3.  When I type in user name and password, I get the message "Cannot connect to iTunes Store"  How can I connect?

    Trying to update my apps on the iPhone 3.  When I type in user name and password, I get the message "Cannot connect to iTunes Store"  How can I connect?

    I have the same problem. Any suggestions?

  • Get Attachment Name and from address of mail in bpel process

    Hi All,
    I am using UMS Adapter to poll email server and  getting the attachment and saving it to local disk.
    In Payload from UMS adapter  i am getting href of the attachment  but I am not able to figure out as to how to get Attachment Name and From Address of a mail in my Bpel process.
    please guide me in getting them .
    Thanks in Advance
    Divyanshu

    1. Double click on your composite receive activity.
    2. Go to Properties tab in your receive activity.
    3. Click "+".
    4. Window that pops up,scroll down and select "jca.ums.from" and store it in some variable say fromAddress (Make sure before adding this property u create fromAddress variable of string data type).
    5. Click OK.
    6. In the same way add property for "jca.ums.msg.content-description" from drop down and assing it to some variable.
    you are good to go.
    Hope this helps.
    Regards,
    Karan
    Oracle Fusion Middleware Blog

Maybe you are looking for

  • How to email multiple photos in one email-PS Lightroom 4

    Hi, I would like to email multiple photos in one email.  Is there a way to do this? Right now I understand how to email 1 photo at a time. I am using the Mac Version of Lightroom 4. Thanks in advance. Cheers, Lourdes

  • FTP listenind channel is not picking the file from remote location

    Hi, We are facing an issue in B2B 11g while connecting to the remote trading partner through FTP. It is not picking file from particular directory as trading partner has given the file location. I have configured the following parameters: Host Name,P

  • Repairing permissions on PPC iMac20 after upgrade

    Hi All Upgrading an iMac20 PPC (dome) to 10.5 . repaired permissions and all fine. after running software update, installing one at a time in the order of release date and running disk utility after each update.. I'm getting the following msgs. *Repa

  • How do I get Java 7 working on my machine

    I hava a Java app at my work that requires Java 7 to run. I downloaded and installed the JRE and JDK for 7u40 from Oracle, however when I try to start the app, it still tries to start with Java 6. If I type java -version, it shows 1.7.0_40, but when

  • Camera Raw 5.2 and DNG Converter Available - Note from Adobe

    Camera Raw 5.2 and the DNG Converter is now available: http://blogs.adobe.com/lightroomjournal/2008/11/camera_raw_52_and_dng_converte.html Lightroom will be updated to version 2.2 with equivalent camera support in December. Regards, Tom Hogarty Light