Displaying 9 results from an estimated 9 matches for "sam_pass".
2005 Mar 17
0
usrmgr.exe and problems
...ree_sam(&sam_user);
@@ -3708,6 +3716,7 @@
uint32 acc_granted;
SE_PRIV se_rights;
BOOL can_add_accounts;
+ BOOL ret;
/*
* delete the group member named q_u->rid
@@ -3740,7 +3749,12 @@
/* check if the user exists before trying to remove it from the group */
pdb_init_sam(&sam_pass);
- if (!pdb_getsampwsid(sam_pass, &user_sid)) {
+
+ become_root();
+ ret = pdb_getsampwsid(sam_pass, &user_sid);
+ unbecome_root();
+
+ if (!ret) {
DEBUG(5,("User %s doesn't exist.\n", pdb_get_username(sam_pass)));
pdb_free_sam(&sam_pass);
return NT_STATUS_NO_S...
2003 Aug 08
0
smbpasswd -m, changing account to a machine account.
...1 2003
+++ /Users/bzfproha/passdb-my.c Fri Aug 8 18:11:19 2003
@@ -1001,6 +1001,13 @@
}
}
+ /* Assure that the workstation trust account flag is properly
updated.
+ */
+ if (local_flags & LOCAL_TRUST_ACCOUNT) {
+
pdb_set_acct_ctrl(sam_pass,(pdb_get_acct_ctrl(sam_pass)|ACB_WSTRUST)&(~A
CB_NORMAL));
+ } else {
+
pdb_set_acct_ctrl(sam_pass,(pdb_get_acct_ctrl(sam_pass)|ACB_NORMAL)&(~AC
B_WSTRUST));
+ }
if(!pdb_update_sam_account(sam_pass, True)) {
slprintf(err_str, err_str_l...
2005 May 11
1
SV: Error with usrmgr and groups.
It's exactly the same. Except that I use tdbsam instead of ldap and the error message therefore also is different in the log file. But the example and result is the same. Do you have any idea of workaround or fix?
Cheers,
Joel
-----Ursprungligt meddelande-----
Fr?n: Doug Campbell [mailto:doug@bpta.net]
Skickat: den 11 maj 2005 10:49
Till: Joel Larsson, PF, Posten; samba@lists.samba.org
2002 Jul 17
0
user password expiration patch (Samba 2.2.4/2.2.5 PDC with LDAP)
...same
diff -ur --new-file samba.org/source/passdb/pdb_smbpasswd.c
samba-2.2.4/source/passdb/pdb_smbpasswd.c
--- samba.org/source/passdb/pdb_smbpasswd.c Sun Feb 3 01:46:49 2002
+++ samba-2.2.4/source/passdb/pdb_smbpasswd.c Thu Jun 6 17:11:02 2002
@@ -1222,10 +1222,11 @@
pdb_set_dir_drive (sam_pass, lp_logon_drive(), False);
- /* FIXME!! What should this be set to? New smb.conf parameter maybe?
- max password age? For now, we'll use the current time + 21 days.
- --jerry */
- pdb_set_pass_must_change_time (sam_pass, time(NULL)+1814400);
+ /* to jerry --
+ FIXED!! New smb...
2004 Jul 27
3
passdb requires /etc/passwd entry?
...out an /etc/passwd entry, and I don't want to
potentially have to add 8000 users from a constantly
changing database.
Is there any workaround for this?
I've noticed in the source that the check for this is
done in passdb/passdb.c approx line 947
if (!NT_STATUS_IS_OK(pdb_init_sam_new(&sam_pass,
user_name, 0)))
But this is in the function local_password_change() --
If this is modifying the smbpasswd database, why would
it need to check /etc/passwd? Is this just a sanity
check, or do I have my samba configs incorrect?
Call me naive, but could I just comment out this
section of code and...
2008 Mar 08
0
(no subject)
...lates the entry with Samba attributes after calling the
add machine script and seeking on the CN of the LDAP entry for the %u
argument?
If the query is the contents of %u from the add machine script, then why do
the LDAP logs show objectClass=* ?
I think the call: status = samu_alloc_rid_unix( sam_pass, pwd); is not
working correctly.
I've not digged into the source code too much -- not at all familiar with
the samba source code but after two weeks of having this problem, I'm ready
to either learn the source or just install a Windows server!
Anyone care to lend a hand or shoot some t...
2006 Jul 12
1
updated samba-3.0.23/examples/pdb/test.c
...return NT_STATUS_NOT_IMPLEMENTED;
}
/***************************************************************************
Delete a struct samu
****************************************************************************/
static NTSTATUS testsam_delete_sam_account(struct pdb_methods *methods, struct samu *sam_pass)
{
DEBUG(10, ("testsam_delete_sam_account called\n"));
return NT_STATUS_NOT_IMPLEMENTED;
}
/***************************************************************************
Modifies an existing struct samu
****************************************************************************/
stati...
2016 Mar 06
0
Segmentation Fault when trying to set root samba password, IPA as a backend
...7e28
#5 0xb7d54402 in local_password_change (
user_name=0x800081c0 <user_name> "ldap09", local_flags=577,
new_passwd=0x800118b8 "p4ssword", pp_err_str=0xbffffbb8,
pp_msg_str=0xbffffbbc) at ../source3/passdb/passdb.c:745
tosctx = 0x8001e888
sam_pass = 0x80028100
acb = 16
rid = 0
result = {v = 0}
user_exists = false
ret = -1
---Type <return> to continue, or q <return> to quit---
#6 0x800034ac in password_change (remote_mach=0x0,
username=0x800081c0 <user_name> "ldap09&quo...
2016 Mar 06
2
Segmentation Fault when trying to set root samba password, IPA as a backend
On Fri, Mar 04, 2016 at 04:16:44PM +0000, Rowland penny wrote:
> On 04/03/16 09:58, Volker Lendecke wrote:
> >On Fri, Mar 04, 2016 at 10:53:17AM +0100, Volker Lendecke wrote:
> >>On Wed, Mar 02, 2016 at 09:23:34AM +0000, Rowland penny wrote:
> >>>OK, here is the output:
> >>Can you try the attached (UNTESTED!) patch?
> >>
> >>Thanks,
>