Jump to content

Recommended Posts

Posted

I'm having a major issue with setting up Office 365, we are trying to set up SSO but when I try and login from a doman pc I ge asked for credentials 3 times then get a 401.1 error. Everything I have found through google points to adding my AD FS server to my local intranet zone in IE, and also addin it as an exception in proxy settings, but that doesn't seem to change anything.

 

I I try to access Office 365 from home then i have to enter my username and password once, and it lets me in with no problems.

 

I think it has something to do with the AD FS FQDN, because when I do a nslookup for the domain name I get an external IP address as the result.

 

Has anyone had this problem? Does anyone have any ideas how I could sort this out?

Posted
I'm going to go out on a limb and say probably not like the documentation because not many schools have the spare hardware or the time for 4+ servers just to run high availability for SSO.
Posted

I've not used proxies, i have followed this link here AD FS with Office 365 Step by Step Install GuideMessageOps | MessageOps, but it doesn't work, keep getting asked for credentials.

 

What i'm looking at doing now, is removing my AD link, removing the SSO link, then removing the users that will be left behind. I then intend to install AD FS on a domain controller as i've read somewhere, and install AD FS proxy on my web server. I'll let you know how that goes, it's been 3 days of banging my head against the wall.

 

Is this normal behaviour for Office 365 with a .local domain? Our AD FS external FQDN is https://extranet.norden.lancs.sch.uk Our UPN Suffix that we are using is the same as our email address and the domain has been verified.

I did read somewhere that I have to create a split DNS, is this true? If so, how do I do this?

Posted

Cheers for that link, i did try looking at another Microsoft document first, but it gave me headache. Plan for and deploy AD FS 2.0 for use with single sign-on - Office 365 for enterprises

 

We only have about 750 users here, but from what I remember about the dirsync logs it syncs about 1100 AD users and groups.

 

I'll build a new 2008 r2 VM and use that.

 

Will it matter if i'm using an existing webserver for my AD FS proxy or should I have a dedicated server for that, I only ask because our LA takes ages to assign a FQDN to one of our IP's, so if I have to use a dedicated server I'd rather know sooner rather than later.

 

Thanks for your advice so far.

Posted

Your AD FS proxy needs to sit in your DMZ as it shouldn't be directly connected to your network (i.e. not domain joined) and you really need a DNS configuration that will allow your internal clients to distinguish between your internal AD FS server and your proxies.

 

From the sounds of it you seem to be deploying 1 server and 1 proxy, which is fine but if either/both go down your users will not be able to authenticate. Although there is more overhead in building out AD FS for HA it is worth it to avoid any issues if a server fails.

Posted
You're right, i'm building it with one AD FS Proxy and one AD FS Server, but if I manage to get it working I'm assuming I can add an extra Proxy and Server to the Farm at a later time. I may have to ask your advice on DNS as it's not one of my strong points, I don't understand what a split DNS is or how to configure one, but i'm sure Google will have the answer somewhere.
Posted (edited)

I'm going through the instructions now, i've started building my cluster, when i'm asked for a ssl certificate, do i have to buy one for my AD FS servers (not proxies)? or can i use a self signed cert?

 

I'm guessing that the AD FS sservers will only be connected to the internal network so my ssl cert needs to be pointing to .local rather than the proxies which would be .sch.uk

 

Oh, i have decided to build 2 AD FS servers in a cluster, and 2 AD FS Proxies in a cluster as the documentation recommends.

Edited by dezt
Posted
Just a quick question, for my proxies, will they need to have an external domain name for my ad fs proxy cluster? For example adfsp.norden.lancs.sch.uk or whatever we choose. I'm guessing we do need to have this but would just rather have someone clarify this.
Posted
Yes, your AD FS proxies will need a publicly accessible address in order to provide access from outside of your network. Usually this is something like sts.contoso.edu or fs.contoso.edu but anything will do as long as it makes sense to you and your users; this is the place they'll be re-directed to when trying to sign in.
  • Thanks 1
Posted
Cheers for clearing that up, I've got my 2 AD FS servers up and running, and got my 2 AD FS Proxies up and running, both sets of servers are in their own NLB cluster, now I just need to get the external domain name sorted for us and point that to the AD FS Proxy cluster ip address and we're away..... well, getting there anyway.
  • 2 weeks later...
Posted

Just thought I'd update you with how things have got on here, I've finally managed to get SSO implemented for Office 365, I just need to find a holiday period to start migrating mailboxes across. Also. A quick couple of questions, firstly, we have usernames in AD that have a space in them, for example mr smith, I get an error report sent to me about directory sync not working for these users due to a username error, should I be changing them to something like jsmith.

 

Secondly, as I'm testing it for my mailbox, I've setup a staggered migration, so emails go to my internal exchange 2003 box, then get forwarded to the cloud mailbox, do I have to wait until I've setup my dns records for exchange before I can connect my iPad to the domain I wish to use?

Posted
Just thought I'd update you with how things have got on here, I've finally managed to get SSO implemented for Office 365, I just need to find a holiday period to start migrating mailboxes across. Also. A quick couple of questions, firstly, we have usernames in AD that have a space in them, for example mr smith, I get an error report sent to me about directory sync not working for these users due to a username error, should I be changing them to something like jsmith.

 

Secondly, as I'm testing it for my mailbox, I've setup a staggered migration, so emails go to my internal exchange 2003 box, then get forwarded to the cloud mailbox, do I have to wait until I've setup my dns records for exchange before I can connect my iPad to the domain I wish to use?

 

Yes, If you have spaces in the username field for the UPN then it will throw up an error and so you need to move this, you can either change the username completely meaning that the person logon username needs to change or you could just update the UPN to match the primary SMTP Address. If you do the later than the person won't really know any different as no one really users the UPN to login with i.e. [email protected]

 

-

 

If you are using the latest IOS on your iPad then there is a problem where by it won't automatically configure if your UPN does not match the Primary SMTP address something seems to have changed as the previous version of IOS didn't require this it just failed, and asked you for the Server Address where by you then put in your Hybrid Server DNS Record i.e. exch2010.domain.sch.uk

 

If you have autodiscover setup, and the SAN Cert has all the relevant entries etc. and your UPN matches the Primary SMTP then the iPad will automatically configure.

 

I hope that helps,

James.

  • Thanks 1
Posted
@EduTech cheers for that, I'm changing the upn's for the staff that haven't gone across, and then I'll migrate the mailboxes, once all that's done, ill be asking the lea to sort out the dns records and then I'll tackle the ipad email issue.
Posted
@EduTech cheers for that, I'm changing the upn's for the staff that haven't gone across, and then I'll migrate the mailboxes, once all that's done, ill be asking the lea to sort out the dns records and then I'll tackle the ipad email issue.

 

No Problem Mate, If you get any further problems feel free to give me a shout done many O365 Hybrid Migrations with ADFS now :-) interesting times of which are some! lol.

 

Cheers,

James.

  • Thanks 1
Posted

@EduTech can I just clear something up.

 

I've asked OneConnect Limited to add a CNAME record to our DNS as stated in this article Enable Outlook to Connect Now, my understanding of this article is that the CNAME should have the alias = autodiscover and the target = autodiscover.outlook.com

 

Tell me if i'm wrong, please.

 

I have been told by OneConnect that they have set up the autodiscover CNAME as follows, alias = autodiscover, and the target = autodiscover.nordenhighschool.co.uk

 

Am I wrong or have they just ignored what I told them to do, which was create the CNAME as it is stated in the Microsoft document. When I tried to ask if he wanted me to email him the directions Microsoft have put on the web he refused and told me that it has to be autodiscover.nordenhighschool.co.uk. I'm expecting to have to phone them back to rectify this tomorrow, it's been 3 days since the first request went in so I don't think it'll be working by weekend.

Posted
@EduTech can I just clear something up.

 

I've asked OneConnect Limited to add a CNAME record to our DNS as stated in this article Enable Outlook to Connect Now, my understanding of this article is that the CNAME should have the alias = autodiscover and the target = autodiscover.outlook.com

 

Tell me if i'm wrong, please.

 

I have been told by OneConnect that they have set up the autodiscover CNAME as follows, alias = autodiscover, and the target = autodiscover.nordenhighschool.co.uk

 

Am I wrong or have they just ignored what I told them to do, which was create the CNAME as it is stated in the Microsoft document. When I tried to ask if he wanted me to email him the directions Microsoft have put on the web he refused and told me that it has to be autodiscover.nordenhighschool.co.uk. I'm expecting to have to phone them back to rectify this tomorrow, it's been 3 days since the first request went in so I don't think it'll be working by weekend.

 

Hi Mate,

 

You are correct in what you are saying set the DNS up as referenced in Microsoft Office 365 Portal otherwise it won't work.

 

If you get bother let me know who your talking to and ill drop then a mail as I know a few people in that pond. ;-)

 

Regards,

James.

Posted

@EduTech

I've checked the autodiscover CNAME has been set up correctly and it has, but i can't connect any client to the office 365 email system, for instance outlook, my ipad, my android phone. I think that it has something to do with the security certificate that is associated with the AD FS proxy servers, as when I try and log on to Office 365 from outside of the school network, before I get the AD FS login page, I get a security certificate error. I have got the certificate from ipsCA though, and they work internally. I checked the chain of the certificates, and there was the intermediate certificate that was not there, so i've imported that and made sure that the root certificate is there as well, when I browse to 127.0.0.1 using https, I get an error ( which I expected due to the certificate website address) but the chain is ok. When I try to browse to the external address https://fsp.norden.lancs.sch.uk I still get an error about the security certificate ststing that there isn't a chain.

 

Would this problem cause my clients to not authenticate and therefore not connect outlook to office 365, or am I just clutching at straws.

 

Any advice you can offer would be greatly appriciated.

Posted

All,

Looks like there are far more knowldgable people already involved in this conversation thread, but are you aware that Microsoft have added some additional features to https://www.testexchangeconnectivity.com/ which allow testing of Office 365 including the SSO elements?

 

I have found the testing and logging from this very useful in the past (although not used the O365 features specifically).

 

Dave

Posted

@Ergo

Yeah, i've been using that quite a bit recently, that's what has been telling me the intermediate certificate was not there on my proxies, it is now but i'm not sure what to do now, do I go through iis and click restart or use command prompt to restart it, i know there is a command, i just can't remember what it is.

Posted

Restting IIS can be done using the command

IISRESET /NOFORCE

 

The NoForce part means that if there are any active connections it will wait till they terminate and therefore will not always shut down the IIS services within the comman's timeout.

 

I would generally use IISRESET as this will restart all IIS services not just the web publishing service (I think).

 

Dave

Posted
All,

Looks like there are far more knowldgable people already involved in this conversation thread, but are you aware that Microsoft have added some additional features to https://www.testexchangeconnectivity.com/ which allow testing of Office 365 including the SSO elements?

 

I have found the testing and logging from this very useful in the past (although not used the O365 features specifically).

 

Dave

 

Yep, I was using that when it was in BETA before it was released publicly. It for sure helps with Hybrid Deployments now (especially Free/Busy) :-)

 

James.

Posted
@Ergo

Yeah, i've been using that quite a bit recently, that's what has been telling me the intermediate certificate was not there on my proxies, it is now but i'm not sure what to do now, do I go through iis and click restart or use command prompt to restart it, i know there is a command, i just can't remember what it is.

 

It does seem like something is up with your certs, have you installed the Certificate, Intermediate & Root to ensure that the Certificate Chain is complete. where did you obtain the certificate from?

 

Regards,

James.

Posted

@EduTech I got the certificates from ipsCA, they offer free certificates for education. I have heed the adfs servers that I have and they were ok. It seems to be the adfs proxies that seem to have the issue with the certificates.

 

I do have a bit of a problem now with adfs not working correctly, when I try and log in to portal.microsoftonline.com I get an error, like I did before, if I rebooted my adfs proxies would that help the certificates sort themselves out, I have installed them in the right stores as instructed on the ipsCA website, and the chain works on the adfs internal servers, so I'm thinking it might help, failing that ill look at the certificates again

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...