Yes, I am aware that %U means username. I used the variables as a shorthand form.
Most parts of the [global] settings are working correctly: user profiles are created at the correct location, the home folder for each user is mounted as Q: in Windows. What didn't work at first (until I fixed it by hand) was the logon scripts.
The smb.conf file is generated by the script "/var/hda/platform/html/app/models/share.rb" (see forum topic
http://forums.amahi.org/viewtopic.php?f=6&t=1891). I edited shares.rb to change the logon drive from q: to t: but it was overwritten on reboot and didn't change smb.conf as I wanted. I couldn't figure out how to run shares.rb without rebooting.
The smb.conf defines the logon script as %U.bat but in the \\hda\netlogons folder (aka /var/hda/domain-settings/netlogons) the only file is logon.bat. When I first edited logon.bat to mount an additional network drive it didn't run. So I copied the contents of that file to seven different files, each named username1.bat, username2.bat, etc... Now the logon script works, but each time I make any changes I have to copy the script to each username. So I made a short shell script to do the job for me. I don't want to post it because it contains the usernames of each account on my hda.
I guess my question is: should we document this in the wiki as expected behavior or should it be filed as a bug that needs to be fixed? I guess the former, since most Amahi users won't need to use logon scripts at all.