mount_webdav does not authenticate using keychain

Using Snow Leopard 10.6.2 on my iMac, mount_webdav does not ask for username or password or obtain these from the keychain, or return any information whatsoever. It does return exit code 80.

After adding -i, mount_webdav does prompt for the username and password and works, but this is annoying when the same server is mounted many times.

mount_webdav worked fine on the same machine with Leopard, and on my macbook with Snow Leopard.

iMac, Mac OS X (10.6.2)

Posted on Nov 25, 2009 11:47 AM

Reply
1 reply

Jan 30, 2010 10:20 PM in response to Peter Bubenik

Ditto; for me I was able to see why. mount_webdav was padding my userid with an extra character thereby causing me to receive an UNAUTHORIZED from idisk.mac.com.

To work around this I put together an 'expect' script that spawns mount_webdav with the -i arg and spawns security (keychain cli) with the find-internet-password arg.

<CODE>
#!/usr/bin/expect
#
set timeout 15
log_user 0
spawn security -q find-internet-password -gs idisk.mac.com
expect -re "password: \"(.*)\"" {
set pwd $expect_out(1,string)
}
spawn mount_webdav -i -s -v vol_name http://idisk.mac.com/user_name/ mount_point
expect "name:" {
send "user_name\r"
}
expect timeout {
exit
} "word:" {
send "$pwd\r"
exp_continue
}
</CODE>

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.

mount_webdav does not authenticate using keychain

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