search for: pdb_free_sam

Displaying 12 results from an estimated 12 matches for "pdb_free_sam".

2004 Jun 07
1
not able to change passwd
Hello, Sorry to have posted in the wrong thread, resending the email. We have a samba domain and now some of the users from WINDOWS 2000 Pro are unable to change their password, below is the error : They are able to login without any problems. pdb_free_sam: SAM_ACCOUNT was NULL [2004/06/07 13:52:29, 0] smbd/chgpasswd.c:check_oem_password(817) check_oem_password: incorrect password length (-135857651). [2004/06/07 13:52:29, 0] passdb/passdb.c:pdb_free_sam(210) pdb_free_sam: SAM_ACCOUNT was NULL [2004/06/07 13:52:29, 0] smbd/chgpasswd.c:check_oem_p...
2002 Nov 02
1
Unable to open passdb???
Hello, Getting this error: [2002/11/02 12:55:16, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/11/02 12:55:16, 0] smbd/chgpasswd.c:check_oem_password(761) check_oem_password: getsmbpwnam returned NULL [2002/11/02 12:55:16, 0] passdb/passdb.c:pdb_free_sam(210) pdb_free_sam: SAM_ACCOUNT was NULL[2002/11/02 12:55:16, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/11/02 12:55:16, 0] smbd/chgpasswd.c:check_oem_password(761) check_oem_password: getsmbpwnam returned NULL [2002/11/02 12:55:16, 0] passdb/passdb.c...
2005 Mar 17
0
usrmgr.exe and problems
..._nt.c 2005-03-17 17:41:13.297259499 -1000 @@ -2865,8 +2865,10 @@ * id21. I don't know if they need to be set. --jerry */ - if (IS_SAM_CHANGED(pwd, PDB_GROUPSID)) - set_unix_primary_group(pwd); + if (IS_SAM_CHANGED(pwd, PDB_GROUPSID) && !set_unix_primary_group(pwd) ) { + pdb_free_sam(&pwd); + return False; + } /* write the change out */ if(!pdb_update_sam_account(pwd)) { @@ -2933,8 +2935,10 @@ ZERO_STRUCT(plaintext_buf); - if (IS_SAM_CHANGED(pwd, PDB_GROUPSID)) - set_unix_primary_group(pwd); + if (IS_SAM_CHANGED(pwd, PDB_GROUPSID) && !set_unix_prim...
2004 Aug 03
1
smbpasswd error
...ine 127.0.0.1 rejected the password change : Error was : The specified password was invalid. Failed to change password for diane and in the log file : smbd/chgpasswd.c:check_oem_password(832) check_oem_password: incorrect password length (1292521526). [2004/08/03 10:12:51, 0] passdb/passdb.c:pdb_free_sam(210) pdb_free_sam: SAM_ACCOUNT was NULL In all cases passwords are between 6 and 9 characters. Janet ************************************************************************* Janet Dickson | http://www.bioss.sari.ac.uk/~janet Biomathematics & Statistics Scotland |...
2004 Mar 15
0
join domain without root
...()) ) { + do_become_root = 1; + DEBUG(1, ("set_user_info_pw: EUID %d for rid=%d(=0x%x), with become_root\n", geteuid(), rid, rid)); + } + } + } + + if (do_become_root) become_root(); + ret = pdb_getsampwrid(pwd, rid); + if (do_become_root) unbecome_root(); + if (ret != True) { pdb_free_sam(pwd); return False; } acct_ctrl = pdb_get_acct_ctrl(pwd); + if (do_become_root) { + char *username, *hostname, *s; + username = pdb_get_username(pwd); + DEBUG(0, ("set_user_info_pw: EUID %d for %s, with become_root\n", geteuid(), username)); + if ( !(acct_ctrl & ACB_W...
2004 Apr 20
1
Latest windows patches have screwed up samba
...he system cannot change your password now because the domain FMDOM is not available." FMDOM is, of course, the name of my domain. However, the password is sucessfully changed. In my workstation log I get multiple entries (log level is set to 10) of: [2004/04/20 09:09:59, 0] passdb/passdb.c:pdb_free_sam(210) pdb_free_sam: SAM_ACCOUNT was NULL With only the time changing. There are four entries for each time I try changing the password. I set my log level to 10 and changed my password, I'm including log.nmbd and log.smbd in case it helps. Please request these files from me, I don't wa...
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
2003 Jan 20
1
LDAP PDC, net rpc vampire
...s succesful connected [2003/01/20 14:26:38, 4] passdb/pdb_ldap.c:ldapsam_getsampwnam(1573) We don't find this user [Administrator] count=0 [2003/01/20 14:26:38, 3] utils/net_rpc_samsync.c:fetch_account_info(333) Could not create account Administrator [2003/01/20 14:26:38, 0] passdb/passdb.c:pdb_free_sam(355) pdb_free_sam: SAM_ACCOUNT was NULL At this point I am suspecting that it's expecting an LDAP account to exist already because I'm using sam backend = ldap. I'll try ldap_nua to see if it improves things, but if anyone can interrupt me and tell me what I'm missing I'd app...
2004 Jan 30
0
[PATCH] Group mapping primary group SID update
..., usrname); + } + else { + d_printf("Could not update primary group SID for user %s\n", usrname); + } + } + } + pdb_free_sam(&sam_pwent); + } + pdb_free_sam(&sam_pwent); + pdb_endsampwent(); + + return True; +} + /********************************************************* Dump a GROUP_MAP entry to stdout (long or short listing) **********************************************************/...
2002 Mar 15
0
logon home with ldap under win98
...S: Could not find entry in sam. \n")); + } else { + DEBUG(3,(" MS: Home Directory is %s\n", sampass->home_dir)); + if ( strlen(sampass->home_dir) != 0 ) + pstrcpy(logon_home,sampass->home_dir); + else + logon_home_frompassdb = False; + pdb_free_sam(sampass); + } + + /* end of test area */ + /***********************************************/ + *rparam_len = 6; *rparam = REALLOC(*rparam,*rparam_len); *************** *** 2521,2527 **** --- 2548,2559 ---- SIVAL(p,usri11_auth_flags,AF_OP_PRINT); /* auth flags */...
2003 Aug 08
0
smbpasswd -m, changing account to a machine account.
...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_len-1, "Failed to modify entry for user %s.\n", user_name); pdb_free_sam(sam_pass); - ---------------------------------------------------------------------- Zuse Institute Berlin, Takustrasse 7 D-14195 Berlin-Dahlem, Germany phone: +49 (30) 841 85-337, fax: +49 (30) 841 85-107 email: prohaska@zib.de, web: http://www.zib.de - -------------------------------------------...
2003 Jan 21
2
sort-of fix for net rpc vampire account creation
...printf( msg_str ); + if (*err_str) + fprintf(stderr, err_str); + if ( !ret ) { + /* FIXME any other cleanup? */ + DEBUG(3, ("Could not create account %s\n", account)); + pdb_free_sam(&sam_account); + return NT_STATUS_NO_SUCH_USER; + } } pw = getpwnam_alloc(account); if (pw) { -- waider@waider.ie / Yes, it /is/ very personal of me. "Life? hell, i haven't had time to do laundry. I...