simon, how many users do you have? can you find out which samr command it is failing on by looking at log.smb or using gdb? i need to know the "opnum".\ btw the static structure in one of the samr calls copes only with about 24 or so users (MAX_SAMR_xxx) luke