static NTSTATUS guestsam_getsampwnam (struct pdb_methods *methods, SAM_ACCOUNT *sam_account, const char *sname)
{
- NTSTATUS nt_status;
const char *guest_account = lp_guestaccount();
if (!sam_account || !sname) {
acct_desc,
munged_dial,
workstations;
- struct passwd *pw;
uint32 user_rid;
uint8 smblmpwd[LM_HASH_LEN],
smbntpwd[NT_HASH_LEN];
uint32 len = 0;
uint32 lm_pw_len, nt_pw_len, hourslen;
BOOL ret = True;
- struct passwd *pw;
uid_t uid = -1;
gid_t gid = -1;
struct group *grp;
fstring grp_name;
GROUP_MAP map;
- uid_t uid;
NTSTATUS ret;
SAM_ACCOUNT *sam_user=NULL;
BOOL check;
NTSTATUS gid_to_sid(DOM_SID *sid, gid_t gid)
{
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
- GROUP_MAP map;
unid_t id;
int flags;
{
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
BOOL fallback = False;
- uint32 rid;
unid_t id;
int flags;
int vfswrap_fchmod(vfs_handle_struct *handle, files_struct *fsp, int fd, mode_t mode)
{
int result;
- struct vfs_ops *vfs_ops = &fsp->conn->vfs;
START_PROFILE(syscall_fchmod);
* extract the realm and convert to upper case.
* This is only used to establish the connection.
*/
- if (cp = strchr(ads->auth.user_name, '@')) {
+ if ((cp = strchr(ads->auth.user_name, '@'))!=0) {
*cp++ = '\0';
ads->auth.realm = smb_xstrdup(cp);
strupper(ads->auth.realm);
static int print_sam_info (SAM_ACCOUNT *sam_pwent, BOOL verbosity, BOOL smbpwdstyle)
{
uid_t uid;
- gid_t gid;
time_t tmp;
/* TODO: chaeck if entry is a user or a workstation */