smb mount login problem with "%" (percent sign) in password

After upgrading to 10.5 (and then 10.5.1) from 10.4, couldn't mount previously mountable Windows 2000 SP4 server machine using SMB using the same account name and password. This server has ftp and afp access also, which work fine. Other accounts on server work fine, as this did pre-Leopard. Created other accounts with different passwords on server, which worked, however, noticed that the account with a problem used a password with a '%' (percent sign) in it. I tried using other characters in its place, e.g., ~ ! @ # $ ^ & * ( ) + = { } | \ / ? ; " ' and 'space' -- all others worked fine. I also tried a couple of different passwords with different results:

1. Password: J4p%36uY Result: 1st time prompt for user name and password, for the result would get the 'Sorry, you entered an invalid username or password'; 2nd time get the message that my '. . . account has expired'. On the Win2K server, the account would be locked out (which was set to lock out after 5 password tries!)
2. Password: bbb%sss1 Result: 'Connecting to Server' window indicates connecting via smb to machine but you can't cancel this window, it doesn't time out (at least after 10min!) and I had to relaunch the Finder to close it.

I also setup another server using Tiger workstation and did a Windows share. The Leopard client also would not work connecting to this server(although there is no notion of locking the account out after xx number of times trying!)

I know I'm shooting in the dark on this, but could anyone else verify this?

Our *nix god here referred me to the following google searchable items:

format string buffer overflows
scanf
printf

We dug around a bit on:
http://www.opensource.apple.com/darwinsource/10.5/smb-344/

but maybe someone out there could shed more light on this before we spend too much time on this? or is there a better way to file this as a bug with Apple internal development?

Thanks!

Intel iMac, Intel mini, Intel PowerBook, Mac OS X (10.5.1), Mac OS 10.4 Windows Share; Windows XP Share; Windows 2000 Share

Posted on Dec 10, 2007 4:03 PM

Reply
5 replies

Dec 18, 2007 12:55 AM in response to bmappleor

I'm having the same problem mounting SMB shares from the Finder under 10.5.1 (Leopard) and the percent character in the password is pretty obviously the problem. I can mount SMB shares using another user's login/password just fine, but my SMB password has a '%' in it and it just hangs in the finder.

My SMB server is a Linux box so it's not a Windows issue. Also Tiger worked fine for me as I could mount SMB shares just fine.

I found that in some cases once I had mounted one share via the command line (typed into an xterm window) I could see and automount the rest of my shares. The command is:
mount_smb username@server mount-point

It appears the GUI code has the problem as the mount_smb command works fine.

So it fits perfectly that the '%' (percent) character in the SMB password is the problem in Leopard. At least I know what the problem is.

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.

smb mount login problem with "%" (percent sign) in password

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