Displaying 19 results from an estimated 19 matches for "acct_ctrl".
2004 Apr 13
0
v3.0.2a: can't login into domain after switching to pdb_mysql
...60 Query SELECT
logon_time,logoff_time,kickoff_time,pass_last_set_time,pass_can_change_time,
pass_must_change_time,username,domain,nt_username,nt_fullname,home_dir,dir_d
rive,logon_script,profile_path,acct_desc,workstations,unknown_str,munged_dia
l,user_sid,group_sid,lm_pw,nt_pw,NULL,acct_ctrl,unknown_3,logon_divs,hours_l
en,bad_password_count,logon_count,unknown_6 FROM user WHERE username =
'root'
60 Query SELECT
logon_time,logoff_time,kickoff_time,pass_last_set_time,pass_can_change_time,
pass_must_change_time,username,domain,nt_username,nt_fullname,ho...
2002 Nov 07
1
smbpasswd (adding machines?) with pdb_mysql doesn't work
...e server, host: localhost, user: sambauser,
password: sambapass, database: samba, port: 3306
Error while executing MySQL query: You have an error in your SQL syntax
near
';,passcantime;,passmusttime;,username,domain;,ntusername;,fullname;,hom
edir;,dir' at line 1
INSERT INTO users
(acct_ctrl,passmusttime;,passmusttime;,hourslen;,logondivs;,uid;,gid,use
rsid;,groupsid;,username,domain;,fullname;,lanmanpass;,ntpass;) VALUES
(128,1038503414,1036689014,21,168,1001,102,'S-1-5-21-185972153-
986818063-2128889050-3002','S-1-5-21-185972153-986818063-2128889050-
1205','b...
2004 Mar 15
0
join domain without root
...u.au http://www.maths.usyd.edu.au:8000/u/psz/
School of Mathematics and Statistics University of Sydney 2006 Australia
--- rpc_server/srv_samr_nt.c.old Sat Mar 15 08:34:49 2003
+++ rpc_server/srv_samr_nt.c Tue Mar 16 06:14:29 2004
@@ -2369,16 +2369,67 @@
uint32 len;
pstring buf;
uint16 acct_ctrl;
+ int do_become_root;
+ BOOL ret;
pdb_init_sam(&pwd);
- if (!pdb_getsampwrid(pwd, rid)) {
+/* PSz 15 Mar 04
+ * This code is called, as the "domain admin", when a machine is joining
+ * the domain, both with netdom and via sysprep/mini-setup.
+ * Do as root (bracket within b...
2003 Sep 23
0
[PATCH] tdb multiple format
...-1304,12 +1321,13 @@
fullname_len, homedir_len, logon_script_len,
profile_path_len, acct_desc_len, workstations_len;
- uint32 user_rid, group_rid, unknown_3, hours_len, unknown_5, unknown_6;
+ uint32 user_rid, group_rid, unknown_3, hours_len, unknown_5, unknown_6, bad_pwd_count;
uint16 acct_ctrl, logon_divs;
uint8 *hours;
static uint8 *lm_pw_ptr, *nt_pw_ptr;
- uint32 len = 0;
+ uint32 len = -1;
uint32 lm_pw_len, nt_pw_len, hourslen;
+ short int format_version = TDB_FORMAT_NEWEST_VERSION;
BOOL ret = True;
if(sampass == NULL || buf == NULL) {
@@ -1317,38 +1335,58 @@
return...
2005 Mar 27
1
problem with listing users on winXP/2k+3
...e_dir | dir_drive | logon_script |
profile_path | acct_desc | workstations | unknown_str | munged_dial | uid |
gid | user_sid | group_sid
| lm_pw | nt_pw
| acct_ctrl | unknown_3 | logon_divs | hours_len | unknown_5 |
unknown_6 |
+------------+-------------+--------------+--------------------+----------------------+-----------------------+----------+---------+-------------+-----------------------+---------------------+-----------+--------------+--------------+--...
2005 Apr 10
0
Trouble adding users with pdbedit
...:
Executing query SELECT
logon_time,logoff_time,kickoff_time,pass_last_set_time,pass_can_change_time,
pass_must_change_time,username,domain,nt_username,nt_fullname,home_dir,dir_d
rive,logon_script,profile_path,acct_desc,workstations,unknown_str,munged_dia
l,user_sid,group_sid,lm_pw,nt_pw,NULL,acct_ctrl,logon_divs,hours_len,bad_pas
sword_count,logon_count,unknown_6 FROM user WHERE username = '<username>'
The user is added to the database but the 'username' field is empty (NULL).
The mysql bin log shows the following insert statement:
INSERT INTO user
(acct_ctrl,pass_c...
2005 Aug 21
2
pdb_mysql.c | SQL insert command missing data
...adds enough information to the
database. smbpasswd -a username causes 2 queries to be
performed. The first of the two looks for an existing
user and that does check all of the
appropriate fields, but the next command which is for
inserting information runs the following command.
INSERT INTO user
(acct_ctrl,pass_can_change_time,pass_must_change_time,pass_last_set_time,lm_pw,nt_pw)
VALUES
(16,1124620545,2147483647,1124620545,'AAAAAAA71AA612E1ED5A6FED37AAAAAA','AAAAAAA6293F6293129F9BE9EBAAAAAA')
You will note that there is no username, domain,
nt_username, nt_fullname, home_dir, dir_dri...
2009 Oct 06
0
Update from pdbsql (MySQL) to LDAP
...unknown_str varchar(255) default NULL,
munged_dial varchar(255) default NULL,
uid int(9) NOT NULL PRIMARY KEY auto_increment,
gid int(9) default NULL,
user_sid varchar(255) default NULL,
group_sid varchar(255) default NULL,
lm_pw varchar(255) default NULL,
nt_pw varchar(255) default NULL,
acct_ctrl int(9) default '528',
logon_divs int(9) default '168',
hours_len int(9) default '21',
unknown_6 int(9) default "1260",
bad_password_count int(9) default NULL,
logon_count int(9) default '0',
logon_hours varchar(42) default NULL,
password_history text...
2009 Jun 12
1
SAMBA+PDC+Mysql authentication Backend
...r` varchar(255) default NULL,
`munged_dial` varchar(255) default NULL,
`uid` int(9) NOT NULL auto_increment,
`gid` int(9) default NULL,
`user_sid` varchar(255) default NULL,
`group_sid` varchar(255) default NULL,
`lm_pw` varchar(255) default NULL,
`nt_pw` varchar(255) default NULL,
`acct_ctrl` int(9) default '528',
`logon_divs` int(9) default '168',
`hours_len` int(9) default '21',
`unknown_6` int(9) default '1260',
`bad_password_count` int(9) default NULL,
`logon_count` int(9) default '0',
`logon_hours` varchar(42) default NULL,
`pa...
2005 Dec 11
1
how to use MySQL-backend !?
...r` varchar(255) default NULL,
`munged_dial` varchar(255) default NULL,
`uid` int(9) NOT NULL auto_increment,
`gid` int(9) default NULL,
`user_sid` varchar(255) default NULL,
`group_sid` varchar(255) default NULL,
`lm_pw` varchar(255) default NULL,
`nt_pw` varchar(255) default NULL,
`acct_ctrl` int(9) default NULL,
`unknown_3` int(9) default NULL,
`logon_divs` int(9) default NULL,
`hours_len` int(9) default NULL,
`unknown_5` int(9) default NULL,
`unknown_6` int(9) default '1260',
`bad_password_count` int(9) default NULL,
`logon_count` int(9) default '0',
`...
2005 Dec 17
0
unsuccessful domain logon on WinXP with nss-mysql
...ve strange SQL inserts towards the database.
These strange inserts usually contain very few columns, and in most cases
the user_id, username and similar important columns are totally missing. The
strangest case was that an insert was sent which contained only one column,
it was for account control (acct_ctrl) and it contained the number 129. I am
afraid that this configuration (nss-mysql with Windows XP domain logon +
Samba) is not supported currently by Samba, or is totally broken.
I get all kind of strange error messages in Windows XP if I try to set the
domain. After forcing the data in the SQL ser...
2007 Jun 14
0
Samba with pdbsql (postgres) as backend - Machines can't join/login domain
...can just realize that the problem is about
the machine account lookup on sql backend. Looking at the pdbedit tool I
saw that my workstation account on pdb_pgsql was being returned as an
user account (account flags), so I fixed it changing to workstation
account putting the right value on the table (acct_ctrl field), but
again, the problem persists.
So as I can see, if I do compare the pdbedit output when using pdb_pgsql
against the output when using smbpasswd backend they are almost the
same, except for some account age and login drive/path information.
I've played a lot with samba parameters, pam...
2005 Oct 13
2
mysql backend create user problem
...o mysql server (samba log shows no problem
connecting to mysql).
However, when i tried to add user ( via "pdbedit -a <username>" command
or "smbpasswd -a" command or via SWAT add user interface), the entry in
mysql only shows "NULL" value for all fields, except ACCT_CTRL field
(inserted value of "16").
Samba and MySQL logs shows no error whatsoever.
I believe the problem is with samba, not mysql.
My smb.conf for MySQL backend as follow :
passdb backend = mysql:bmais
bmais:mysql database = <database>
bmais:mysql password = &...
2005 Oct 25
1
Authentication problem with Mysql backend
...rname | domain |
nt_username | nt_fullname | home_dir | dir_drive |
logon_script | profile_path | acct_desc | workstations | unknown_str |
munged_dial | uid | gid | user_sid |
group_sid | lm_pw | nt_pw
| acct_ctrl | unknown_3 | logon_divs | hours_len | unknown_5 | unknown_6
| bad_password_count | logon_count | logon_hours |
+------------+-------------+--------------+--------------------
+----------------------+-----------------------+------------+---------
+-------------+--------------------+----------------...
2015 Jun 04
1
error when samba-tool domain classicupgrade
...try['rid'] + 1
-
+ if username in "badretdinova":
+ continue
+ #2. The user has no in the ldap directory. I understand where he takes it. On it there is an error that no such user unix.
user = s3db.getsampwnam(username)
acct_type = (user.acct_ctrl & (samr.ACB_NORMAL|samr.ACB_WSTRUST|samr.ACB_SVRTRUST|samr.ACB_DOMTRUST))
if acct_type == samr.ACB_SVRTRUST:
smb.conf from the old server
[global]
workgroup = 74ru
netbios name = dc1
server string = Chelyabinsk PDC
security = user
enable privileges = yes
admin...
2007 Feb 28
2
samba problems. accounts expire after a hour, but work after reset
...ld(292)
Executing query SELECT
logon_time,logoff_time,kickoff_time,pass_last_set_time,pass_can_change_time,pass_must_change_time,username,domain,nt_username,nt_fullname,home_dir,dir_drive,logon_script,profile_path,acct_desc,workstations,unknown_str,munged_dial,user_sid,group_sid,lm_pw,nt_pw,NULL,acct_ctrl,logon_divs,hours_len,bad_password_count,logon_count,unknown_6,logon_hours,password_history
FROM user WHERE username = 'ralph'
[2007/02/27 12:09:16, 3] passdb/lookup_sid.c:fetch_gid_from_cache(1015)
fetch gid from cache 1001 -> S-1-5-21-1968991162-2130249723-1959552931-513
[2007/02/27...
2006 Sep 01
0
[Fwd: Re: Authentication fails (sometimes)]
...12] pdb_mysql.c:mysqlsam_select_by_field(292)
> Executing query SELECT logon_time,logoff_time,0,pass_last_set_time,pass_can_change_time,pass_must_change_time,username,'GSB',username,gecos,home_smb,NULL,logon_script,profile_path,NULL,NULL,NULL,NULL,user_sid,group_sid,pass_lm,pass_nt,NULL,acct_ctrl,logon_divs,NULL,NULL,NULL,NULL,'?????????????????????',NULL FROM user WHERE username = 'law'
>[2006/08/27 20:03:03, 10, pid=18112] passdb/pdb_get_set.c:pdb_set_username(534)
> pdb_set_username: setting username law, was
>[2006/08/27 20:03:03, 10, pid=18112] passdb/pdb_get...
2006 Aug 30
1
Authentication fails (sometimes)
...=18112] pdb_mysql.c:mysqlsam_select_by_field(292)
Executing query SELECT logon_time,logoff_time,0,pass_last_set_time,pass_can_change_time,pass_must_change_time,username,'GSB',username,gecos,home_smb,NULL,logon_script,profile_path,NULL,NULL,NULL,NULL,user_sid,group_sid,pass_lm,pass_nt,NULL,acct_ctrl,logon_divs,NULL,NULL,NULL,NULL,'?????????????????????',NULL FROM user WHERE username = 'law'
[2006/08/27 20:03:03, 10, pid=18112] passdb/pdb_get_set.c:pdb_set_username(534)
pdb_set_username: setting username law, was
[2006/08/27 20:03:03, 10, pid=18112] passdb/pdb_get_set.c:pdb_s...
2003 Dec 01
0
No subject
...== NULL)
+ if ((group_attrs = (uint32 *)talloc_zero(p->mem_ctx, num_rids * sizeof(uint32))) == NULL)
return NT_STATUS_NO_MEMORY;
}
@@ -1476,6 +1488,7 @@
DEBUG(3,("User:[%s]\n", smb_pass->smb_name));
+ ZERO_STRUCTP(id10);
init_sam_user_info10(id10, smb_pass->acct_ctrl);
return True;
@@ -1513,6 +1526,7 @@
if (smb_pass->acct_ctrl & ACB_DISABLED)
return NT_STATUS_ACCOUNT_DISABLED;
+ ZERO_STRUCTP(id12);
init_sam_user_info12(id12, smb_pass->smb_passwd, smb_pass->smb_nt_passwd);
return NT_STATUS_NOPROBLEMO;
@@ -1613,7 +1627,7 @@...