JNDI and MS Exchange Server 5.5

I was having a bit of grief getting JNDI to talk to the MS Exchange Server for even the most simple things. For example, I could not get the members of a group. As it turns out, Exchange allows the administrator to configure which attributes are visible via LDAP to unauthenticated users.
The member attribute was turned off by default so my code couldn't see it. This is fixed either by using an authenticated connection (which I didn't try) or by setting the attribute to be visible to unauthenticated users. This worked for me. Look at Configuration->DS Site Configuration->Attributes in the Exchange admin tool.
My next problem wasn't as obvious. I wanted to query the value of the "Primary NT Account" associated with a given user. By searching around I found that this field is named "Assoc-NT-Account" when speaking LDAP. Unfortunately, it is not listed in the fields that can be made visible via LDAP as described above. Some more searching yielded this arcane procedure. Use with caution:
1. Run the Exchange admin tool in raw mode:
e.g. c:\exchsrvr\bin\admin.exe /r
2. Select the "View->Raw Dirctory" menu item.
This will make a new folder appear named Schema.
3. Click on the Schema folder to get a list of attributes.
Scroll to "Primary Windows NT Account" and double
click. Click yes to display raw properties.
4. Choose Heuristics from the "Object Attributes" list.
Change the value from 12 to 14. This turns on bit 1.
The bits are (roughly):
Bit 0: Replicate between sites
Bit 1: Attribute visibility through LDAP
Bit 2: Attribute accessibity by authenticated clients
Bit 3: Attribute is an operational attribute
5. Click OK. Now you can retrieve the value of
Assoc-NT-Account.
The last trick is that return value is not in the domain\user form that it is displayed in the Exchange admin tool. Instead it is the NT SID (Security ID) for the user. However, instead of being the normal textual representation of a SID, it is a string representation of the bytes in the raw SID structure. So, to get the standard representation one must convert this string of hexadecimal digits into an array of bytes and interpret it as defined by Microsoft.
If you want the domain and username, you probably need to pass the SID to an NT Domain Controller.

I'm not totally sure about the last part of your message. I thought you were right until I had a look at what a 'real' SID looks like using Evgenii Rudnyi's utilities: user2sid and sid2user, found at http://www.chem.msu.su/~rudnyi/NT/sid.txt
the Assoc-NT-Account I get is:
010500000000000515000000EA35F753FC3DF4122647A33E78140000
and the sid I get using the utility for the exact same "DOMAIN\username" value:
S-1-5-21-1408710122-317996540-1050887974-5240
Those two look slightly different.
I read http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnactdir/html/msdn_adsiexch.asp
and they say Assoc-NT-Account's syntax is a "String(Octet)"
Can anybody help converting this "String(Octet)" to a 'readable' String?
Thanks,
--Benjamin.

Similar Messages

  • I have 4 email accounts in apple Mail.  My mail is sending from the wrong account.  even on "reply" it sends from a different account.  I have 3 gmail accounts and one exchange server account. I choose which account to send from and it still sends from a

    I have 4 email accounts in apple Mail.  My mail is sending from the wrong account.  even on "reply" it sends from a different account.  I have 3 gmail accounts and one exchange server account. I choose which account to send from and it still sends from the same gmail account.  Help.

    I HAD two accounts because of this problem.  I completely removed the problem account from the Apple Mail client.  Guess what is happening??  That's right - Mail is still sending from the other account that no longer exists on my computer, and I have absolutely no idea how this is happening.  This is incredibly frustrating.  When a recipient chooses to reply to my message, quite often I won't get it now because it is going to the other account that has now been deleted from my system.  COME ON APPLE!!! WHAT'S THE DEAL WITH THIS???

  • How to install and configure Exchange Server 2010 DR (disaster recovery) on Windows server 2012.

    We need to install and configure Exchange Server 2010 with DR(disaster recovery on Server 2012.
    Pls suggest step by step.
    Pankaj Kumar

    Hi,
    Here is an article which may help you for your reference.
    Deploying High Availability and Site Resilience
    https://technet.microsoft.com/en-us/library/dd638129(v=exchg.141).aspx
    Besides, there is a related thread here.
    https://social.technet.microsoft.com/Forums/exchange/en-US/577c9433-a20b-442e-8ce7-be59aea35855/preparation-for-deploying-exchange-2010-servers-at-remote-site-dr-site?forum=exchangesvrdeploylegacy
    Hope this is helpful to you.
    Best regards,
    Belinda Ma
    TechNet Community Support

  • Cannot send attachment beyond 1.5 MB, the MaxFileSize parameter is already set to 6 MB and the exchange server's limit is 10 MB

    Hi Experts,
    I cannot send attachment beyond 1.5 MB, the MaxFileSize parameter is already set to 6 MB and the exchange server's limit is
    10 MB.
    What could be the issue?
    aa

    But I am able to send the same  attachment from my web browser
    aa
    I am not expert in Exchange but web browser may not be using SMTP protocol? Check with your SMTP/Exchange Admin about "4.3.1 Message size exceeds fixed maximum message size"
    4.3.1 is response from the server.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Oracle alerts and microsoft exchange server

    Hi,
    We are working on Oracle Applications 11i (fail over on 2 servers) which is installed on Solaris 64 bit .
    AND I am trying to configure Oracle Alerts with Microsoft Exchange Server.
    I am following the note: Oracle Applications And Microsoft Exchange Server-Interoperability Guide.
    At the step of configuring the exchange Server I need to know the account used to run the Concurrent Manager service.
    How can i check that?
    Thanks.

    Hi,
    At the step of configuring the exchange Server I need to know the account used to run the Concurrent Manager service.
    How can i check that?Most probably it is applmgr user.
    To verify, issue "cd $COMMON_TOP/admin/scripts/<CONTEXT_NAME>", then "ls -l adcmctl.sh". This should should the OS owner of the script (the OS user which is used to start the CM). Or, you could check the value of the "s_appsuser" context variable in the application context file to determine the user.
    Regards,
    Hussein

  • Installing and configuring Exchange Server 2013 on mobile boradband

    I'm trying to configure Exchange Server 2013 on my test server. But I have a mobile boradband connection for Internet. Therefore, I don't have port forwarding and a static IP. Since I'm a beginner, I want to know whether I can install and configure exchange
    server on my machine or whether there are workarounds for this. Thanks. 

    Hi,
    If you just want to work internally, I suggest build AD and DNS server on your lab and give it a static IP.
    If you want to work both internally and externally, I suggest publish your DNS.
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • A Mac, a PC, a Treo, a Tour and an Exchange Server walk into a bar...

    I've been a Palm user for over ten years. Yesterday my boss told me that I'd be getting a data plan for my Verizon phone and I could stick with my Treo or he'd upgrade me to a Blackberry. I've had my Treo for 14 months, well, I've had a Treo for 14 months, but 6 different ones because the stupid things keep breaking. It didn't take a whole lot of time to make the decision to switch to a Blackberry.
    So here's the situation...
    I am a tried and true Mac devotee. I have a Mac laptop and a desktop, and do the majority of my personal and creative work on the laptop. I am also a programmer, so have a PC laptop as well. My work computer is a PC (of course) and our email and calendar is hooked up to an Exchange server. 
    My boss sync'd my Tour to the Exchange server this morning and I am getting my work emails, etc with no problems. 
    I have the Palm desktop on my Mac and my PC, and both are sync'd with my Treo. I need to get all of my contacts into my Tour, and I'd like to get the Blackberry desktop on at least my Mac laptop so that I have a fully sync'd calendar on it since it's the computer I usually have with me. 
    When I back my Treo up, all of my text messages, images, notes, etc are backed up by the Palm software as well - is there a way to port those into the Blackberry as well? Are any applications compatible between the two?
    I also have a fantastic program on my Treo called NVBackup that runs on a schedule that backs up the entire phone every 24 hours so that if the phone dies all you have to do is pop the memory card out, put it in a new phone and it will reinstall everything. Is there a similar program for the Blackberry?
    Thanks!!
    Michelle

    jheymann wrote:
    At this moment I can recieve email thru the exchange server, the Mac shows its connected to the exchange server but I cannot send or reply to an email, and the incoming and outgoing server is the same freaking server!  My simple iphone syncs seeemlessly with my servers, email, calendars and contacts.  It makes no sense.  Any suggestions?
    iPhones connect to Exhange servers via ActiveSync, whereas Mac OS X Mail (as does Entourage EWS and Outlook 2011) connect via Exchange Web Services (I've read it's due to rather licensing issues for ActiveSync that prevents Apple from using it on OS X as well, but that's unconfirmed). So what works with one has little bearing on what works or doesn't work on the other.
    Anyway, we'll see if we can come up with any ideas. Let's start with basics: what version of Exchange is running on the server and what version of Mac OS X is your MacBook running? And does this problem happen when you're connected directly to the company network, or only when you're connecting via another provider?
    Regards.

  • CRM 5.0 and microsoft exchange server integration

    Hi,
    I'm facing problem in setting up email integration in SAP CRM.
    What I woul like to achieve is that an email sent to the call center should be see the email in this way:
    from: customer email
    to: [email protected]
    The exchange server responsible says that it is not possible to do this but exchange has to change the "to" domain before sending the email and so the call center agent should see in the inbox an email like this:
    from: customer email
    to: [email protected]
    Is it right? Any hint?
    Can you help me?
    Thanks in advance.
    Roberto

    Hello Roberto,
    E-Mail rerouting is possible with an Exchange server. We use an adress [email protected] provided from the Exchangeserver. The mail is then forwarded to [email protected] to be retrieved by our CRM System for further processing. Please ask your Exchange admin again. I think he has to get wome more information about configuration possibilities.
    Regards
    Gregor

  • Apple Mail and MS Exchange server?

    In a strange twist of fate, our new university President is a Mac guy (yeah!), but he is obligating all of us to put email and calendar software into MS Exchange server. Sadly, it means I will need to migrate 4 GB of emails from Apple mail to Entourage.
    Does anyone know of a solution that will allow me to continue using Apple Mail?
    I also favor NOW Up to Date & Contact for calendar and contacts. Any ideas on connectivity between Exchange server?
    Thanks.
    Intel iMac   Mac OS X (10.4.9)  

    Rats! I just heard from our IT department. The reason Apple Mail is not supported is that it requires IMAP to be turned on. They claim that "IMAP passes passwords and mail in clear text which is a big security problem. Exchange natively sends all of its info in an encrypted manner. "
    Is there a way to get Apple Mail to use Exchange Server without IMAP in a way that will get these security freakish IT folks to be happy?

  • IOS 5.1.1 and MS Exchange server 2010 SP2 Rollup 2 compatibility

    Hello to the community,
    Microsoft Exchange Server updated to a new version 2010 SP2 Rollup 2 so I would like to know if iOS 5.1.1 (9B206) is fully compatible with it. We run the 2010 SP1 Rollup 5 of MS Exchange Server.
    Thanks in advance.

    That is not how i read your problem.  It sounded like propagating to Exchange was fine, but changes from Exchange did not get updated in Unity Connection right away.  My symptoms were that the voicemail message arrived in Outlook immediately.  If I read it or deleted from the phone, then Outlook reflected that right away too.  But if I read it or deleted it in Outlook, it took awhile for the phone MWI to go off.  In fact, when I just read it, I'm not sure it ever went off, but when I deleted it, it eventually went off.
    We have our voice servers (including Unity Connection), sitting behind Cisco ASA firewalls.  We allow all traffic outbound from the voice servers, but restrict it coming inbound.  I have a server group for the Exchange servers that allows any port through.  I did not remember to add the new Exchange 2010 servers to this group.  TCP port 7080 appears to be the only port used.  I do not know how the voicemail eventually got deleted in Unity before, unless it eventually came from one of the Exchange 2007 servers.  But I definitely saw port 7080 getting blocked, and once we opened it up, the updates from Exchange to Unity happened within seconds.

  • Unable to open OWA cross site between 2013 and 2010 Exchange Server

    Hello,
    First of all allow me to describe the scenario as this always helps and is often omitted from many questions.
    SITEA – 1 x 2010 Exchange Server (All roles except UM and Edge), Domain controllers etc available
    SITEB- 1 x Newly installed 2013 Exchange Server (Mailbox and CAS roles), GC Domain controllers etc. avaliable
    Sites and Services are correctly configured between the sites and we have a high speed WAN connection between the data centres all ports and communication between servers at both sites are open as the connection is secure. 
    After installing Exchange 2013 in SITEB, whenever I try to login to either the ECP or OWA of the 2013 with a user whose mailbox is in SITEA we immediately receive the sad smiley face with the something went wrong message. Clicking more details displays
    the following message:
    X-FEServer: <OUR_EX_2013_SERVER>
    I was expecting Exchange to proxy the request to the 2010 server and get the 2010 OWA experience. If I create a new mailbox on the 2013 then it is of course fine. 
    Is someone able to suggest any troubleshooting steps? I have of course fully followed the Exchange 2013 deployment assistant from Microsoft and ensured all pre-requisites were carried out. 
    The Exchange 2013 server is SP1 and is running on Windows 2012 R2

    Hi,
    According to your description, your ECP and OWA requests cannot be proxyed or redirected from your Exchange 2013 to Exchange 2010 server. If I misunderstand your meaning, please feel free to let me know.
    If yes, I recommend you the following troubleshooting:
    1. Check all URLs of ECP and OWA virtual directory on your Exchange 2010 server.
    get-owavirtualdorectory |fl *url
    get-ecpvirtualdirectory |fl *url
    Does your Exchange 2010 server has the same namespace with your Exchange 2013 server?
    2. Check if you can ping your Exhange 2010 server on your Exchange 2013 server.
    3. Check if there is any error in your event log and IIS log on the Exchange 2013 server.
    Thanks,
    Angela Shi
    TechNet Community Support

  • BlackBerry Curve 8900 and the Exchange Server (((((PLEASE help me)))))

    Dears, I am new to the BlackBerry world, and I just got my BB Curve 8900 last night, well I’m very familiar with other iPhone, Nokia& Windows Mobile.. I managed to push my gmail to my device, WOW it’s very nice, but trying to do so for my work mail!!! BAD LUCK They use Exchange Server, we do have web access but through SSL, so even so can’t push it to my device, some forums were talking about the desktop redirector, I install it on my PC (I can’t touch our server of course, even our IT will never listen to my request); having the latest Desktop Manager and the latest Desktop redirector, working with Outlook 2007& Vista OS. 
    I keep all of them running while trying everything, but always getting an Status: NO PIN in the Desktop Redirector window? I have the following Q’s please.. 
    1-      Is there is any S/W that I should install on our server? If so, it means it’s OVER for me and it’s BAD LUCK.
    2-      Why I can’t get my work email although of following the same procedures described in the installation guide? 
    Please advice, your input is really appreciated. 
    Regards,

    Thank you very much for your input, but: our company is using https://............
    I mean we are getting OWA through secure server, and I tried the same installation process but also NO LUCK?? 
    Kindly suggest another workaround or so? as I need to access my email remotely.. again I appreciate your input, meanwhile I'm encouraging others to H E L P... 
    Regards,

  • Address Book and MailStreet Exchange Server not synchronizing

    I was reading the discussion in this thread (http://discussions.apple.com/thread.jspa?threadID=1008103&tstart=3147) but it has been archived and I can't reply there. So here's a new topic.
    I'm having the same problem, only I'm trying to connect to a hosted Exchange 2007 server through mailstreet.com. I also successfully connected and synchronized to a hosted Exchange 2003 server through mail2web.com, so it appears that the poster who says that Address Book only works with Exchange 2000 was mistaken.
    I found little reference to this issue online except for one article at Snerdware (http://discussions.apple.com/thread.jspa?threadID=1008103&tstart=3147), which mentions in the fourth and fifth paragraphs from the bottom that this person had the exact same issue with the MailStreet setup.
    I have a hard time believing that it is specifically the MailStreet service that is at fault, since Address Book connects to the same ports that are opened for Outlook Web Access and the WebDAV services that Entourage connects via (and Entourage successfully connects to the MailStreet server using the Exchange WebDAV protocol).
    Is it a setting thing? I've tried every permutation of the MailStreet Exchange server's address (including prepending it with http://, https://, suffixing it with /exchange, /exchange/username, /exchange/domain\username, using my login with just my username and with domain\username, etc. I cannot get it to work.
    MailStreet customer service said that unfortunately they do not support synchronzing with the OS X Address Book. However, the agent who emailed me back did say that he has heard of it working sometimes with the same settings I was attempting to use, so that both encourages and discourages me.
    Any ideas how to make this work?
    Also, I have the install disc for 10.5 but have not yet upgraded. Maybe the Leopard Address Book app has additional Exchange functionality...?

    I found another thread that more closely describes the problem I'm having:
    http://discussions.apple.com/thread.jspa?threadID=1045312&tstart=3705
    I've identified the same Translator crash mentioned in that thread. Each time I try to manually sync Address Book with the Exchange server, I see the Translator crash pop up in the console.
    This is now happening on two Exchange servers. I have not gone back and tested to see if the Mail2Web one works--that will likely be my next step. But what on earth could be configured incorrectly to cause Translator to crash?
    Interestingly, if I change the Outlook Web Access server setting from https://server.domainname.com/exchange/domain\username to https://server.domainname.com/exchange, I get an error popping up that "iSync couldn't connect to Exchange / Could not reach the server specified." With it in the former setting (which is how Address Book defaulted the Outlook Web Access server setting after I entered the username and password), it fails silently but Translator crashes in the background.
    Interestingly, too, with the former option, I see either no TCP traffic with tcpdump or one short line of gibberish with my IP address talking to the Exchange server's address. With the latter option (without the domain and username appended to the end), I see a good bit more TCP traffic--more like 20 rows in a standard-sized Terminal window, so it is talking to something.
    Message was edited by: Chris Luth

  • 8310 email and MS Exchange Server

    How can I set my blackberry 8310 to sync up with my college Microsoft Exchange Server.
    My service provider is AT&T, I have the bb plan.
    I want my blackberry to be able to update itself with the calendar entries I enter as well as being able to send and receive emails.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Hi,
    My name is Chris, ... and I'm addicted to my Blackberry.
    Solved!
    Go to Solution.

    You will first need to check with your carrier to make sure you have the right data plan. With a regular BlackBerry data plan your data won't truly sync. You can setup to receive your Inbox emails, but the rest of the data has to be synchronize when the device is connected to your computer. If you have the BlackBerry Enterprise Plan all of your data will sync wirelessly, almost instantaneously.
    With AT&T the regular data plan is $30 and the Enterprise plan is $45. 
    Do you know if your college has a BES (BlackBerry Enterprise Server)? I'd check with them first before switching plans.
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • IPhone and Microsoft Exchange Server , 'Send As' Function

    Hi there
    Well as described in the topic. Is it possible to send emails from the iPhone, using another smtp server?
    Why I need this?
    Well, some people in our company have 2 separate Mail Accounts.
    One for everything and one for the iPhone. They can then create rules by themself for which emails they want to be forwarded to their iPhone.
    The problem is, when they answer using the iPhone, they would like their regular email address to appear, so that all mails still arrive at the regular mail account.
    Can anyone help me?
    I hope I've expressed myself clear
    Thanks for your help in advance

    Try this:
    1. On your Exchange server that runs your active sync or outlook web access, open IIS
    2. Right click on the website that contains exchange components and choose properties.
    3. Select the "Directory Security" tab
    4. Under "Secure Communications", click the "Edit" button
    5. Under "Client Certificates", select "Ignore Client Certificates"
    6. *IMPORTANT STEP: When you click ok and ok again, it may ask you whether you want to change other subfolders within the main container with the modifications you have just made, dont select any of these subfolders, just click OK. It is only the main properties you need to change. Those that need to inherit, should already inherit properly. If you select other subfolders to change with the modifications you have just made, it will likely ruin your active directory setup as some subfolders need different security settings to others.

Maybe you are looking for

  • Cost of replacing laptop screen through Toshiba

    My daughter cracked the lcd crystals in my screen.  Does anyone know the cost of having Toshiba replace it?  I am afraid to do it myself.  Any info on this subject would be great.  Thanks!

  • Problem in set session varibales

    hi i have a problem in set roles varibale in OBIEE 11.1.1.6 i use a initialazion block and row-wize initialization but it set the ROLES varibvale just by BIConsumer and Authenticated user and it does not set my values what should i do?? thanx for any

  • Cannot install v11.7.700.202 - error stating "get the latest version." WIN 7 Pro 64-bit

    The latest version caused issues with ADP administrators, and we have to go back to previous version.  But I keep getting error with the only options to  "click here" to get the lateste version or Quit the install. Urgh!

  • Apple TV on a yacht

    I am living on a boat with a satellite dish and a very slow connection, can I use an appleTV to play media off a hard drive, if it can't connect to the iTunes store?

  • Adding email parameters in email definition in OIA

    Hi, There are some OOTB email parameters provided in OIA for email notifications. I need to include the "user manager's manager email id" in the notifications, but that is not there in the OOTB definitions. How can I create a custom email parameter i