Sonoma doesn't recognize updated SMB password

Good afternoon,


I have an issue that is cropping up more and more now and I have yet to determine the cause or a solid solution. We have an SMB file server on our campus network, which is protected by a VPN and requires the user to enter their University network username and password to access it.


Four separate users in the last few months have reported that, after they change their University account password, they can no longer log into the fileserver - the credentials window rejects their password, even though they are 100% positive that they entered the new password correctly (and I have confirmed / tested it myself for them.)


EDIT: They are able to log onto the VPN stage normally, it is only the Go > Connect to Server option to reach the smb:// server that is rejecting their password.


In every case, the user is running OS 14 Sonoma. In the first two cases, I was able to resolve it by having them restart and then it worked normally.


The third user was able to log onto the server on other computers, and I was able to log in with my own credentials on their computer. We went through Keychain > Passwords, but there was nothing stored that we were able to locate. The 'resolution' came when I had the user create a new local profile on their Mac - THAT fixed the problem, in that they could log onto the server with their correct password on the new profile.


Now I have a fourth user, I am just beginning to work on this issue with them as well.


It seems to me like either Sonoma is caching the old password and using that, rather than using what they're actually typing in at the credentials screen - or it's not communicating with the server to authenticate, but rather using its own cached password to authenticate (and thus failing). I will obtain whatever details I can but I would like to find out why this is happening with Sonoma users (and I fear it will happen more and more as more users upgrade/purchase new machines.)


The machines vary, one was an iMac, two were Macbook Pros and this current one is a Macbook Air M2, 2023 model.


Brian

MacBook Air (M2, 2023)

Posted on Feb 13, 2024 10:54 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 27, 2024 5:16 AM

I haven't heard anything new, just the solution I worked out with Apple support that I posted above (Reposting here). I've had about a dozen users with the problem since then and this fix has worked for everyone.

~~~~~~~~~~~~~~~~~~~~~~


After working with the senior education support team at Apple for a while, I think we have a viable solution to get past this without having to rely on the capitalization workaround.


We did testing with my iMac (Sonoma, Ethernet wired) and a laptop (Sonoma, Wi-Fi only). Despite this not being the case with some earlier incidents, we were able to confirm that there is now an entry in Keychain

Access  This entry is named after the SMB server that our users are trying to reach.  Interestingly enough, this entry appears there whether or not you select the checkbox for remembering your credentials at the Connect to Server login screen (in that case, it just has no username or password info). It is the culprit.


I tested this several times with a test user of my own, and confirmed that when I see the problem (the

new password not being accepted after a change), deleting this entry entirely and rebooting has been a solution consistently.  I know in the early stages of this problem, there was not a keychain entry - I do not understand what changed in that regard, possibly something that was changed in the various updates to OS 14.


After all the testing, I wanted to wait until a user in the field had the problem to try the solution out on them. I had a user this week report the problem, and confirmed that it DID fix the problem for them.


The official fix is:


1) Having them go into Utilties > Keychain Access > Choose Keychain Access from the popup window that appears > login (top left under Default Keychains) > Passwords (at top).

2) Locate the specific entry under Passwords that matches the FQDN of the server you were accessing, delete that entry completely, and shut down/restart the laptop.


After reboot, the entry is recreated when they try to log in again (again with no username or password date) even if they do not check the box to remember the credentials. But this time, they were able to log in.


A couple of notes:


1) This problem does NOT seem to happen at all, if the user is logged on to a Mac that's wired directly to our network and bound to Active Directory. It would seem that in those cases, Connect to Server is passing the AD credentials directly on to the SMB server when the user chooses 'Go > Connect to Server', and bypassing the Keychain entirely. (My assumption, based on what I'm seeing.)


2) It only happens with Macs not bound to AD / using local accounts.


3) I did try adding the user name and password to the entry in Keychain referenced above, this did not help. At some point I may try testing deliberately checking the box to save the credentials to see if this makes a difference, but that's a low priority given that the problem does have a resolution.

16 replies
Question marked as Top-ranking reply

Sep 27, 2024 5:16 AM in response to jworreth

I haven't heard anything new, just the solution I worked out with Apple support that I posted above (Reposting here). I've had about a dozen users with the problem since then and this fix has worked for everyone.

~~~~~~~~~~~~~~~~~~~~~~


After working with the senior education support team at Apple for a while, I think we have a viable solution to get past this without having to rely on the capitalization workaround.


We did testing with my iMac (Sonoma, Ethernet wired) and a laptop (Sonoma, Wi-Fi only). Despite this not being the case with some earlier incidents, we were able to confirm that there is now an entry in Keychain

Access  This entry is named after the SMB server that our users are trying to reach.  Interestingly enough, this entry appears there whether or not you select the checkbox for remembering your credentials at the Connect to Server login screen (in that case, it just has no username or password info). It is the culprit.


I tested this several times with a test user of my own, and confirmed that when I see the problem (the

new password not being accepted after a change), deleting this entry entirely and rebooting has been a solution consistently.  I know in the early stages of this problem, there was not a keychain entry - I do not understand what changed in that regard, possibly something that was changed in the various updates to OS 14.


After all the testing, I wanted to wait until a user in the field had the problem to try the solution out on them. I had a user this week report the problem, and confirmed that it DID fix the problem for them.


The official fix is:


1) Having them go into Utilties > Keychain Access > Choose Keychain Access from the popup window that appears > login (top left under Default Keychains) > Passwords (at top).

2) Locate the specific entry under Passwords that matches the FQDN of the server you were accessing, delete that entry completely, and shut down/restart the laptop.


After reboot, the entry is recreated when they try to log in again (again with no username or password date) even if they do not check the box to remember the credentials. But this time, they were able to log in.


A couple of notes:


1) This problem does NOT seem to happen at all, if the user is logged on to a Mac that's wired directly to our network and bound to Active Directory. It would seem that in those cases, Connect to Server is passing the AD credentials directly on to the SMB server when the user chooses 'Go > Connect to Server', and bypassing the Keychain entirely. (My assumption, based on what I'm seeing.)


2) It only happens with Macs not bound to AD / using local accounts.


3) I did try adding the user name and password to the entry in Keychain referenced above, this did not help. At some point I may try testing deliberately checking the box to save the credentials to see if this makes a difference, but that's a low priority given that the problem does have a resolution.

Feb 23, 2024 12:47 PM in response to LRDC-Brian

I'm seeing same in a simple test setup. I connect to a Windows network-shard folder from Finder/Network using a local user account. I "disconnect" on the Mac, then change the Window's user password. I cannot connect again from the Mac to the share typing the new password. I was careful to NOT remember the password in the keychain. If the Window's user password is changed again back to the initial password, then the Mac can connect.


MacOS Sonoma 14.2.1, macOS 14.2.1 (23C71)


(PS: I went back to Keychain Access, passwords tab. The SMB host appeared there contrary to my leaving "remember" unchecked.)

Aug 2, 2024 3:17 AM in response to LRDC-Brian

I had a similar problem. Very surprisingly, I noticed that I could no longer back up data on my MacBook Pro with CCC, getting the message that the password was wrong, which worked only a few hours before. To manually log in to the Finder did not work either. I deleted keychains and reset the password on the other Mac – but nothing helped. The only solution for me was to upgrade to Sonoma 14.6. Now it's fixed. Strange bug, Apple!

May 10, 2024 9:10 AM in response to LRDC-Brian

We are running into this same issue on Sonoma 14.4.1. Just updated the org within the last month from Ventura & this didn't appear in any of our tests, but we've now had 8 users report being unable to connect to our Windows 2016 Network File Share servers with their new password after changing it. Capitalizing one or more of the letters in their username allows the connection to be established. Deleting the Keychain entries does not help with this bug.


Has anyone else discovered a workaround or root cause?

Feb 15, 2024 11:28 AM in response to LRDC-Brian

I have an update to add to this: Based on something I saw, I had the user change only the capitalization of their username at the credentials screen for the SMB server. So if they were jsmith1 before, I had them change to Jsmith1. Lo and behold, now their password is accepted and they can log in. (But not with jsmith1, I had them go back and try).


So somewhere, the jsmith1 is cached.. but I cannot find it. It's definitely not in Keychain > Passwords, but somewhere. I am concerned that every time they change their network password, they'll have to change to a different capitalization (and the University requires us to change passwords every 6 months.) That's going to be problematic very quickly. Anyone have an idea where this is being cached?

May 10, 2024 9:31 AM in response to Troublshoot

As directed by Apple Senior Support Staff for Education, I captured this happening with Screen Recording, and I also recorded the capitalization workaround with Screen Recording as well. Then I uploaded the logs to them and they confirmed receipt. They said they were going to talk to their engineers about this - he noted that the engineers will try to claim it was resolved due to the capitalization workaround, but I clarified to him that what happens next time they change their password? Eventually you run out of letters to alter capitalization with (and I confirmed that all caps fails just like all lower case.) I was told they'd contact me back on Monday.. that was on 4/25/2024. I've waited this long to give them time, but will be contacting them again to follow up.

Feb 23, 2024 12:46 PM in response to Mountain-tim

Unfortunately, changing the password for the user on the server end is not an option here (the network's password policy forces a change every 6 months, and the policy also prevents any of the last 6 passwords from being re-used). So I'm force to find temporary workarounds (like creating a new user profile on the Mac, or trying a different capitalization on the username) until I can figure out why Sonoma's not transmitting the correct password to the server. I can definitely verify that none of these users opted to remember the password in Keychain, and we dug through Keychain very carefully to ensure there was nothing saved that had anything to do with that SMB server address.

Oct 1, 2024 9:57 AM in response to LRDC-Brian

Thanks for your reply.


In fact after investigating further, I found out where the problem was:

The share folder began to be unaccessible from MacOs when I setup a AD on the network, more precisely, my Synology NAS was both the AD and the sharing server exposing the shared folders.


I then had to add the user to the AD to make the mac working with the share.


I discovered that during the SMB2 negotiation on MacOS, the client tried to login with MYDOMAIN/username which was unknown from the AD.


Thanks again for your help.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Sonoma doesn't recognize updated SMB password

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.