Benches macOS

1

mount_webdav does not authenticate using …

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

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.

1 reply

Sign in or join Beachball Help to reply.

  1. 0

    detvarmeg

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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_namer"

    }

    expect timeout {

    exit

    } "word:" {

    send "$pwdr"

    exp_continue

    }

    </CODE>