just got a aquarela crash when trying to mount it from windows xp.
w2k worked fine.

the offending code (with fix) was this:

/n/dump/2010/0307/sys/src/cmd/aquarela/smbcomsessionsetupandx.c:119,124 - 
smbcomsessionsetupandx.c:119,130
                        smbseterror(s, ERRSRV, ERRbadpw);
                        goto errordone;
                }
+               if(s->cs == nil){
+                       smblogprint(h->command,
+                               "smbcomsessionsetupandx: s->cs == nil\n");
+                       smbseterror(s, ERRSRV, ERRbadpw);
+                       goto errordone;
+               }
                memcpy(&s->client.mschapreply, mschapreply, 
sizeof(s->client.mschapreply));
                s->cs->user = accountname;
                s->cs->resp = &s->client.mschapreply;

turned out, s->cs was nil and i got the following message when turning on 
debugging:

                s->cs = auth_challenge("proto=mschap role=server");
                if (s->cs == nil) {
                        smblogprint(h->command, "smbnegotiate: couldn't get 
mschap challenge\n");
                        return SmbProcessResultMisc;
                }

so auth failed.  i'v diffed the authserver and factotum code and
noticed that here where some mschap related changes so i applied them,
build factotum and authsrv and made a new kernel and it all works now.

not sure if this was the same problem here...  its easy to diagnose...
touch /sys/log/aquarela and turn on debugging.  also when something
crashes you make ps, find the broken process pid and run acid pid, then
type lstk(). then you copy and paste the output of acid and put them in
your troubleshooting mail.

another thing...  could we replace the ascii art wich looks like a mix
of c-comments, lisp, brainfuck and hitler that the windows network drive
property dialog shows on the volume size of the aquarela share to
something else?

"Capacity:      /*-(, bytes -16384"

--
cinap
--- Begin Message ---
erik quanstrom wrote:
perhaps the new cifs server would be better?

A pointer please.

Already searched mailing list, (8) man pages, and the contrib packages
but only found mention to aquarela as a cifs server.

Thanks, and

Regards,

   Jorge-León

--- End Message ---

Reply via email to