Sunday, March 1, 2015

New Cookie 365 release !

Hi All, I am releasing a new version of Cookie365 - Version v0.5.

What's new:
- Added the "-homedir" option in order to mount OneDrive For Business drive for a specific user. When used with "-mount" option it will mount a disk with the OneDrive For Business path for a specific user (\DavWWWRoot\personal\<user>)
- Source code available under GNU Public Licensing

Here you can find Cookie365-v0.5 and here the VisualStudio package released under GPL licensing.

Following you can find the currently available switches for Cookie365:

Mandatory:
-s <sharepoint URL> (e.g. https://xxxxxx.sharepoint.com)

Optional:
-u <user>: if you are not using ADFS you can specify a username with the format user@domain.com
-p <password>: if you are not using ADFS you need to specify your password
-d <domain>: if you are using ADFS but your internal domain is different from Office365 domain you can specify a different Office365 domain with the format domain.com 
-quiet: be quiet...
-mount: if you specify a disk name (e.g. z:) it will be used, otherwise the OS will assign the first available disk. Optionally you can specify the -homedir option in order to mount the drive with the path for the specific OneDrive For Business user (\DavWWWRoot\personal\<user>)

Ciao,

Fabio Cuneaz

82 comments:

  1. Thanks for the update! Unfortunately it doesn't seem to be working for me... although it says it sets the cookie successfully I'm not able to access my previously mapped drives. Trying to mount a new drive results in the generic error message (add site to trusted zone, etc, but it's already there). All works fine after logging in through IE again, so maybe it's not creating/putting the cookies in the right place?

    ReplyDelete
    Replies
    1. Hi, if you want I can assist you for the troubleshooting.If interested please contact me on Linkendin so we can share private stuff. Fabio

      Delete
    2. I'm having the same issues. If it's any consolation, it's not just your tool. I've been working with a script that throws the same error -- it doesn't actually succeed until I open an instance of IE and choose "Open with Explorer" on the document library I'm trying to access. After that, I can map the drive without issue. I'd love to work with you to figure out what's going on. You can find me at pkluss@sawdustREMOVETHISinvestments.com

      Delete
  2. Although it appears to work, I can't get it to map a drive or access previously mapped drives. It says:

    SharePoint URL: https://domain.sharepoint.com/Documents
    User: user@domain.com
    Use Windows Integrated Authentication: False
    Mount as disk: *
    Retrieving ADFS URL...[KO] (Probably not ADFS Federated)
    Retrieving STS Token...[OK]
    Retrieving Cookies....[OK]
    Setting Cookies in OS...
    C:\Downloads>pause
    Press any key to continue . . .

    ReplyDelete
    Replies
    1. Hi Justin,
      could you please give me more details to check the issue ?
      Regards,
      Fabio

      Delete
    2. Hi Fabio,

      I have been testing this tool over the past few weeks and have noticed this morning it no longer works and only returns:

      "Setting Cookies in OS..." instead of the usual cookies set to expire in xxxx GMT.

      Is there anything I can give you to assist in troubleshooting this? I have attempted to contact you via LinkedIn but don't have a premium account.

      Thanks,

      Gus

      Delete
  3. Hi Fabio.

    I just came across your blog regarding this onedrive mapping.
    I have been struggling with this for a while and your blog has worked 100% for me.
    We use ADFS and i ran this and it's now mapping a drive successfully. I cannot thank you enough for this little tool! It's fantastic!!!!!!!!!!!

    Thanks,
    Mark.

    ReplyDelete
    Replies
    1. Hi Mark. Thank you so much for your feedback !!

      Delete
    2. Hi Fabio.

      I have given our staff and students access to this and they are finding it extremely helpful! :)

      Someone asked me, is there is an Apple Mac OSX version!
      I don't suppose you have ever looked at this running on OSX? haha.

      Thanks again,
      Mark.

      Delete
    3. Hi Mark. I am happy the users are finding it useful.

      Regarding the Macintosh... I am a longtime fan and user ... :-)
      But... the utility was built essentially to be used when scripting automation with ADFS Single Sign On is required, and it's built on .NET.

      If you need an interactive usage (meaning that your users have to enter their user/password) I suggest to use the OneDrive4Business Client for MacOS. There is a preview release which works quite well. You can find it here: http://www.microsoft.com/en-us/download/details.aspx?id=45519

      Hope it helps...

      Cheers,
      Fabio

      Delete
    4. Hi,
      I hoping you can help me. I'm trying to map to Onedrive Business on a PC in a workgroup and Cookie365 works fine up until the mount point, but when I try to use the -homedir switch and map to a personal folder of a specific user I get 'System error 53 has occurred' and at the end 'the network path was not found'. I've tried different syntax's for the path but none work. Many thanks, Chris

      Delete
  4. Hi, Fabio. Thanks for the code. And I hate to expose my ignorance, but what am I supposed to do with the Visual Studio code? When I run the Cookie365 command I get the following error:

    [ERROR]:Could not load type 'System.Runtime.CompilerServices.IAsyncStateMachine' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

    Thanks!
    Mike Rodgers
    mrodgers@unitedwaytriangle.org

    ReplyDelete
    Replies
    1. Hi Mike. No worries... Regarding the source code (I release the visual studio project) it can be used by other programmers to modify or improve the software in the future.

      Regarding your error, probably you are missing the Microsoft .NET 4.5 which is freely available here http://www.microsoft.com/en-US/download/details.aspx?id=30653

      Delete
    2. Well, 4.5 fixed it. Now I wonder if you have a quick fix for the "Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically." error.

      I've installed the MS update for IE 10, added sites to IE Trusted Sites zone, and a few other things. Running W7, SP1.

      I'm not asking you for any detailed diagnostics, just curious if you've run into this and already know of a solution.

      Thanks!

      Delete
  5. Have you tested in an environment without ADFS using an explicit user/pass? Can't get it to work in this case... just claims to have successfully set cookies, but the drives can't be accessed. They only work when cookies are set by explicitly logging in to Office 365 online through IE.

    ReplyDelete
    Replies
    1. Hi Ann,
      yes I tested it without ADFS. If you want to do some troubleshooting please contact me via Linkeding so we can share private stuff.
      Regards
      Fabio

      Delete
    2. I downloaded the source and realized the issue is that the utility produces cookies that expire immediately and thus never get set in IE by InternetSetCookie persistently. The -expire argument doesn't seem to be documented, but if I use it to give the cookies any articial future expiration date (I'm guessing the actual cookie expiration date is supposed to be 5 days?) both the FedAuth and rtFA cookies get set in IE and the utility works! Yay! Anyway, with this workaround it's now usable and definitely a better solution than my previous powershell scripts. Thanks!

      Delete
    3. Hi Ann,
      yes I inserted this option and talked about it in some previous posts. But, since the expirationis set on the server side, I don't think it's correct to force it to another value on the client side. I suppose this could lead to issues in the dialogue with SharePoint online. Anyway... if it works for you.. it's ok :-)

      Delete
    4. Hopefully you get this message, but the problem is that the cookie needs to be set using UTC. This is much less obvious of an issue for those who live nearby UTC timezone! The fix is to add .ToUniversalTime() so you have cookies["FedAuth"].Expires.ToUniversalTime().AddMinutes(expire).ToString("R") along with the same for the "rtFA" cookie.

      Delete
    5. That did it! Many thanks, Adam!

      Delete
    6. Oops, spoke too soon. Looks like now the cookies expire a mere 5 minutes later. That doesn't seem right either...

      Delete
    7. Hi, I just tried using different timezones and the result is always the same, the cookie expiration is set to 5 minutes. I tried with the code suggested by Adam, but I got the same result.
      But... which is your issue ? In my environment, after I do the mount of the share, it stays alive as long as the user is logged in. Are you experiencing a different behavior ?

      Delete
    8. With the original code, the cookies expire immediately and are never set in IE. With Adam's fix, the cookies do get set but will expire in 5 minutes. You're right that as long as I access the share while the cookies are valid, it will work until the next reboot.... so I guess the cookies are only necessary for initially accessing the share, but not for maintaining the connection (ie. I can delete them manually and the mapped drive is still accessible)

      Delete
    9. The default expiration of the cookies that are returned is 5 minutes in the future; there is a command line option 'expire' that is not documented but still works, which will add that amount of minutes to the expiration. For example, "Cookie365 -s https://your.sharepoint.com -expire 25" will expire after 30 minutes (assuming you are using my code changes that fix the UTC issue)

      Delete
  6. Hi Fabio,

    Can i say thank you for the tool that you created, this has made life so much easier. It works very well mapping the onedrive as a drive letter etc.

    We have a few sharepoint libraries that i was trying to map however it doesn't seem to like it a white space in the path - when i try to map the sharepoint library. So we would have a library say TEAM and then in there folder called "shared documents". Mapping directly to shared documents doesn't work. I did try the escape characters for space %20 but it didn't work.

    Just wondering if you got any thoughts on this?

    Many thanks,

    Regards,

    Ash.

    ReplyDelete
    Replies
    1. Hello,

      I think I found out the solution to my problem, I just put the path in double quotes. This resolves the white space issue in path.

      Thanks,

      Ash.

      Delete
    2. Good to hear you solved the issue :-)

      Delete
  7. Fabio, thank you very much for creating this tool. I believe it needs a better home - have you considered putting the project up on github or another open source place? This will make things incredibly easier for others to help maintain and improve the tool, as well as increase its visibility. I know it took me a long, long time to finally come across this tool!

    ReplyDelete
  8. Hello Fabio,

    Just a quick question, the application works well when inside the network where the adfs is deployed. When users are taking their laptops (domain joined with cached credentials), it does not seem to map the drive with their broadband connections.

    I was wondering if there is a way to authenticate the users from outside the network using the cached credentials i.e. not having to use the -username and -password parameters if they have a company/school laptop issued to them.

    The issue for us is that we have sharepoint and onedrive mapping using your brilliant program however when users are trying to use this (part of a post logon script) it doesn't map the drive.)

    Any ideas?

    Thanks,

    Ash.

    ReplyDelete
    Replies
    1. Hi Ash,
      when the users are inside the organization they do not enter their password, and the authentication is made via AD/STS Tokens, therefore I cannot cache the credentials. In order to get what you need I would need to "ask" the password and cache it. It could be a fallback option. I will try to develop it. Regards, Fabio

      Delete
    2. Hi Fabio,

      Yes the offline access would be a really great thing, Please let me know if you had the time to look at this?

      Thanks,

      Ash.

      Delete
  9. Fabio - I've used this once and it worked perfectly, I'm now trying to use it again in a slightly different environment and I seem to get the buffer error:

    ============= Cookie365 v0.5 - (C)opyright 2014-2015 Fabio Cuneaz =============

    SharePoint URL: https://testing.com
    User: d.student1234@testing.com
    Use Windows Integrated Authentication: True
    Retrieving ADFS URL...[OK]
    Logging in and retrieving SAML Token...[OK]
    Retrieving STS Token...[OK]
    Retrieving Cookies....[ERROR]:Buffer cannot be null.
    Parameter name: buffer
    [ERROR]:One or more errors occurred.

    I've tested the federation and it all looks ok...any ideas?

    Cheers,

    Dylan.

    ReplyDelete
    Replies
    1. Hi Dylan, I need some more details in order to help you. Could you contact me in private ?

      Delete
    2. I do have the same problem as well. Is there any solution to it?

      Delete
  10. Awesome tool, thank you! Quick feature request - would it be possible to add a parameter which allows you to specify the 'label' of the mapped drive? For example if I map an O: drive for a users OneDrive for Business folder it would be nice to change the drive label to 'OneDrive'.

    ReplyDelete
    Replies
    1. Thank you Paul !
      I will check if it's feasible.

      Delete
  11. Hi Fabio, thank you for your great tool!
    One potential issue for a future release: in our environment our username is n.surname@domain.com and the drive mapping with the -homedir switch becomes /personal/n.surname_domain_com/ instead of /personal/n_surname_domain_com/

    ReplyDelete
    Replies
    1. Hi,
      I hoping you can help me. I'm trying to map to Onedrive Business on a PC in a workgroup and Cookie365 works fine up until the mount point, but when I try to use the -homedir switch and map to a personal folder of a specific user I get 'System error 53 has occurred' and at the end 'the network path was not found'. I've tried different syntax's for the path but none work. Many thanks, Chris

      Delete
  12. Hi Fabio,
    I hope you can help me out. We are a not for profit organisation hoping to use Office365 to improve our productivity etc. The problem is the organisation has 30 years of data over 80 thousand files to deal with and after researching online I found your blog (Office365 can only sync up to 20,000 files). Users at the main office will login into a shared Staff local account (no server) on desktops running Windows 7 Pro, how do I actually use this tool so the mapped Onedrive Business can be accessed as soon a user logs in without signing into Office 365? Many thanks, Chris

    ReplyDelete
    Replies
    1. Hi,
      I hoping you can help me. I'm trying to map to Onedrive Business on a PC in a workgroup and Cookie365 works fine up until the mount point, but when I try to use the -homedir switch and map to a personal folder of a specific user I get 'System error 53 has occurred' and at the end 'the network path was not found'. I've tried different syntax's for the path but none work. Many thanks, Chris

      Delete
    2. Hi Chris, probably the utility cannot get the correct path to Mount.
      Have you tried to launch the utility without the -Mount option and to use a command like " net use z: \\XXXX-my.sharepoint.com@ssl\DavWWWRoot\personal\XXXX\Documents"

      Regards,
      Fabio

      Delete
  13. Hi Fabio,

    Love the utility. It's been awesome for us for a couple months now. Not sure if this is just us, but the past couple weeks we've been receiving a couple error message. First is: "System error 224 has occurred" followed by "Access Denied. Before opening files..." error when running the utility. One of our developers is looking to see if he can figure out why but so far no luck. Have you noticed the same?

    Or any ideas why we might getting those now when we hadn't been before? Any help would be appreciated.

    We have *.microsoftonline.com and *.sharepoint.com in our trusted sites list, so I don't think that'd be part of it.

    Thanks!

    Sean

    ReplyDelete
    Replies
    1. Hi Sean, thank you.
      I have no clue regarding the error you are experiencing. We are using the utility in production without problems. It could be a temporary problem with Office365.
      Kind Regards,

      Fabio

      Delete
  14. having trouble getting personal onedrive locations to map:

    seems to work with https://cowo365.sharepoint.com but not with the correct "https://cowo365-my.sharepoint.com.

    C:\Users\****\Downloads>cookie365 -s https://cowo365.sharepoint.com -mount O: -homedir
    ============= Cookie365 v0.5 - (C)opyright 2014-2015 Fabio Cuneaz =============

    SharePoint URL: https://cowo365.sharepoint.com
    User: ****@****.gov
    Use Windows Integrated Authentication: True
    HomeDir: DavWWWRoot\personal\****_****_gov\Documents
    Mount as disk: O:
    Retrieving ADFS URL...[OK]
    Logging in and retrieving SAML Token...[OK]
    Retrieving STS Token...[OK]
    Using proxy...[http://127.0.0.1:8888/]
    Retrieving Cookies....[OK]
    Setting Cookies in OS...[OK]. Expiry = Tue, 18 Aug 2015 15:23:14 GMT
    Mounting Share.../c net use O: \\cowo365.sharepoint.com@ssl\DavWWWRoot\personal\****_****_gov\DocumentsSystem error 53 has occ
    urred.

    The network path was not found.

    [OK]


    C:\Users\****\Downloads>cookie365 -s https://cowo365-my.sharepoint.com -mount O: -homedir
    ============= Cookie365 v0.5 - (C)opyright 2014-2015 Fabio Cuneaz =============

    SharePoint URL: https://cowo365-my.sharepoint.com
    User: ****@****.gov
    Use Windows Integrated Authentication: True
    HomeDir: DavWWWRoot\personal\****_****_gov\Documents
    Mount as disk: O:
    Retrieving ADFS URL...[OK]
    Logging in and retrieving SAML Token...[OK]
    Retrieving STS Token...[OK]
    Using proxy...[http://127.0.0.1:8888/]
    Retrieving Cookies....[OK]
    Setting Cookies in OS...

    ReplyDelete
    Replies
    1. Hi Kevin,
      to troubleshoot the issue you can try to launch the utility without the -mount option.
      Then you can try from command prompt to Mount the drive with
      net use x: \\cowo365-my.sharepoint.com@ssl\DavWWWRoot\personal\xxxxxxx\Documents

      Regards,
      Fabio

      Delete
  15. Once again, thanks for the tool. I was considering putting this on github or equivalent since I've made some changes and I'm sure the wider open source community can help foster improvements. I see you have been responding recently; would you object if I do so? Shall I keep the Cookie365 name or not? Of course if you plan to put it somewhere as well, I'll just submit patches to you. Let me know!

    ReplyDelete
    Replies
    1. Hi Adam. Sorry for the late late reply and thank you for the suggestion.
      The answer is YES, I am setting up a github repo for the project. I will let you know asap. Fabio

      Delete
    2. Hi Adam. I published the project in github. Here is the url.

      https://github.com/FabioCuneaz/Cookie365

      Delete
  16. Hi Fabio,
    Any idea why I might get this error?
    'The application was unable to start correctly (0cx000007b). Click OK to close the application'

    Windows 7 Pro (VM on Hyper-V)

    Thanks in advance.

    ReplyDelete
  17. if (CommandLine["homedir"] != null)
    {
    String user = username.Split('@')[0];
    String domain = username.Split('@')[1];
    String usersuffix = string.Empty;
    foreach (var item in user.Split('.'))
    {
    usersuffix = (usersuffix == string.Empty) ? item : usersuffix + "_" + item;
    }
    String domainsuffix = string.Empty;
    foreach (var item in domain.Split('.'))
    {
    domainsuffix = (domainsuffix == string.Empty)? item : domainsuffix + "_" + item;
    }
    homedir = "DavWWWRoot\\personal\\" + usersuffix + "_" + domainsuffix + "\\Documents";
    }

    ReplyDelete
  18. Issues you may have, and one I can't fix:

    1. cookie365 calculates the expected URL of the users wbedav space. It may not always be correct. (It usually is, but a reprovisioned account will break it). Fix is to include a REST api call to ask sharepoint to tell you what it is is. A call to -my.sharepoint.com/_api/v1.0/me/files/root (with the cookies) will return the users weburl.

    2. You need to have the webclient service running. By default it isn't, and unprivileged users don't have permissions to start it directly, but can start it via the event trigger that's registered on the service. I think that this must be how IE starts it fror you. Run (at a command prompt):
    sc qtriggerinfo webclient
    to see the event trigger information
    C# code to do this is available at http://stackoverflow.com/questions/29474022/call-advapi32-dll-native-eventwrite-function-from-c
    I simply made a tiny executable to do this. Alternatively set the service to run automatically.

    3. The cookies collected are fairly short life (65 minutes) If you login via IE and don't select "keep me logged in", that's what you get. But, if you do tick the option then the cookie life is a few days. Certainly long enough for users logging in each day. I assume that it must be possible to change the requests to fix this, but I can't figure out how to do it. Without this, It's difficult to manage the connections satisfactorily as the user needs to relogin every hour.

    ReplyDelete
    Replies
    1. Hi Anonymous, thank you for the great job ! I will try to introduce the suggested fixes in my spare time.
      Regards, Fabio

      Delete
    2. Hi!

      I have the same problem (3), I use Cookie365 in a production environment in citrix and its flawless, renewing Onedrive cookies evry 30min, for evry user via task scheduler (no user impact). But we need auto-login to sharepoint in IE thats consistent even after IE has been restarted.

      Only way atm is to use smartlink, and that solution imo is not a nice solution...

      Delete
  19. Hello!
    I want the Sharepoint URL to be static, as in I don't want to type it in as an argument in the command line every time - got any ideas on how to manually enter the URL in the code, to slim down the arguments given in the command line?

    Fantastic guide by the way, works flawless for me.

    ReplyDelete
    Replies
    1. Hi Oscar, you can create a batch file with the URL you want to use.
      Regards,
      Fabio

      Delete
  20. Hi Fabio,
    First of all, thanks for taking on this very annoying issue. I have tried to use your utility, but I keep getting:

    [ERROR]:The system cannot find the file specified.

    From your code, I'm guessing it refers to more general errors, perhaps .net in some form? I am on Windows 10 and have .net 4.5.

    Please advise!

    Many thanks,

    Vidar

    ReplyDelete
    Replies
    1. Btw. i have the web service running.

      Also, no matter what i write as the url, even random letters, or valid sharepoint sites, it's the same error.

      Delete
    2. I've managed to make it further - but now i get the:

      Retrieving ADFS URL...[KO] (Probably not ADFS Federated)

      Any clues on that?

      Delete
    3. Hi Vidar,
      are you using ADFS ? If not you have to specify user/pwd.
      Fabio

      Delete
  21. Fantastic solution, thank you so much! For non-ADFS sites, it would be useful if a login prompt pop-up was displayed. Currently I'm adding "set /P password=Please enter your password:" to the CMD script and then "-p %password".

    ReplyDelete
    Replies
    1. Thank you Matt !
      The tool was developed mainly for non-interactive use in ADFS environments. Yes, it would be nice to fall-back to user/password prompt in case ADFS is not working. Unfortunately at the moment I have no spare time to spend on the development. I have published the project on GitHub, so anyone can start a branch to add new features.
      Fabio

      Delete
  22. Hi Fabio, Do you have an email I can reach you on? I am using this but sometimes find I need to re-run the utility several times a day as my connection is timing out. I have other users using this for the same SharePoint site and it doesn't have to be run as much as what I have too?

    ReplyDelete
    Replies
    1. Hi Mattew. Sorry, I cannot provide an email. If you need to contact me you can find me on linkedin.
      I my production env I don't need to re-run the utility. While the share is mounted no need to re-run.

      Delete
  23. Hello.

    Great tool. Good job Fabio.

    This is what I'm using:
    Cookie365 -s https://contoso.sharepoint.com -quiet -u John.Doe@contoso.com -p Hello -mount: z: -expire 9999999

    I put it on a back file on Windows 10 startup. I mapped the drives using NET USE command line once.

    Question:
    It's posible to avoid use in the command line code the username and password so that users can use the credentials used when login from Windows (domain)? I mean, I'm using AD Azure, when user change password for a different one, I need to change the password from the batch file also.

    Thanks.

    ReplyDelete
  24. Hello.

    It's me again, from the above comment.

    This is what I'm using:
    Cookie365 -s https://contoso.sharepoint.com -quiet -u John.Doe@contoso.com -p Hello -mount: z: -expire 9999999

    I put it on a batch file on Windows 10 startup. I mapped the drives using NET USE command line once.

    Question:
    It's possible to avoid use in the command line code the username and password so that users can use the credentials used when login from Windows (domain)? I mean, for non-ADFS. Actually I'm using AD Azure, when user change password for a different one, I need to change the password from the script (batch file) also.

    Thanks.

    ReplyDelete
  25. yeah how can we handle the change password, can cookie365 prompt the user to enter their latest password after a change password if it returns password not valid? Fabio I will give you $100bucks donation if you can implement that :) my email cookie365 at limitless.co.nz thanks.

    ReplyDelete
  26. Me too Fabio, I will give you a good donation if you can improve what I asked :)

    ReplyDelete
  27. I use the script but the password resides hashed in the user profile. The Computer and User are being protected by Intune, AzureAD and Bitlocker

    ReplyDelete
  28. Hi Fabio,
    thank you very much for this great tool!!
    We intend to use your tool for accessing the onedrive share in a singe sign on environment on Citrix. It works great and we have no problems with it. But one consideration I have: How about the future? Do you think it is possible that Microsoft might change their OneDrive/SSO philosophy "one day" and you tool might not work anymore? I know, nobody is able to have a look into the future, but what is your opinion?
    Thanks in advance!
    Frank

    ReplyDelete
  29. Hi Fabio,

    I've been using the tool for a while on a number of machines and it's been great. I've had to reinstall Windows 8.1 on one machine and when I tried to put cookie365 back on I am now getting Obejct reference not set to an instance of an object on the Retrieving Cookies step.

    How do I fix this? I believe it's set up as the other machines but have I missed a prerequisite?

    ReplyDelete
  30. Hi Fabio,

    The Cookie365 application is wonderful, but unfortunately it stopped working today. I've found that Microsoft has changed something with the POST redirect. That's why the ADFS SSO option isn't working anymore. I would be great if you could take a look.

    ReplyDelete
  31. Cookie365 stopped working for us yesterday as well. I hope this can be fixed soon, because our users have started complaining that the driveletter to Onedrive for Business is now non functional ...

    ReplyDelete
  32. An hour ago Cookie365.exe was able to retrieve the ADSF URL again. I guess MS fixed a SSO problem at their end.

    ReplyDelete
  33. Same here. We were just about to implement this but it has stopped working. Would be very keen for a similar solution.

    ReplyDelete
    Replies
    1. Retrieving ADFS URL...[OK]
      Logging in and retrieving SAML Token...[ERROR]:Object reference not set to an instance of an object.
      Retrieving STS Token...[ERROR]:Problems with authentication or SAML token retrieval
      [ERROR]:One or more errors occurred.

      Delete
    2. And today it looks like it is working fine. Thanks

      Delete
    3. Hi Joel,

      We have been experiencing the exact same error message since the 2nd November. Was there any change that you did that caused it to work again?

      Kind Regards,

      Delete
    4. Hi All,
      I confirm there are again problems. I tried to debug the issue back in August, but then everything started to work again without any change to the software. Probably there are issues on the microsoft side. Fabio

      Delete
    5. HI Daniel, Hi Joel,
      I released a fix which solved the issue in my environment. Please let me know if it solves: https://1drv.ms/u/s!ApjmTil1JgH8lJ9EjjCj8KrIQU5XzA

      Delete
  34. Hi Fabio,

    I had the same issue as Daniel and Joel.

    I can confirm the new version works for me.

    Thank you for creating this program, it helps us out a lot!

    Kurt

    ReplyDelete