search for: get_global_sam_sid

Displaying 9 results from an estimated 9 matches for "get_global_sam_sid".

2023 Aug 29
1
Classic Upgrade changes domain SID
On Mon, 2023-08-28 at 23:46 +0200, Peter Koch via samba wrote: > Hi Andrew and Roland, > > I spent some hours today to debug the problem by > adding lots of printf-statements into the samba4 > source. > > Here are my findings: > - upgrade.py calls passdb.get_global_sam_sid() > - get_global_sam_sid() calls pdb_generate_sam_sid() > - pdb_generate_sam_sid() calls secrets_fetch_domain_sid() > - secrets_fetch_domain_sid() calls secrets_fetch() > - secrets_fetch() calls dbwrap_fetch() > - dbwrap_fetch() reads the correct file and returns > exactly the...
2006 Feb 15
2
smbd fails to start on Fedora Core 4
...[FAILED] Starting NMB services: [ OK ] And this is the relevant part of the log file: [2006/02/15 15:36:42, 0] lib/util.c:smb_panic2(1525) BACKTRACE: 7 stack frames: #0 smbd(smb_panic2+0x8a) [0x72507c] #1 smbd(smb_panic+0x19) [0x7252c2] #2 smbd(get_global_sam_sid+0x2bc) [0x6dd84c] #3 smbd(init_guest_info+0x65) [0x76b6be] #4 smbd(main+0x2a7) [0x7a6fb3] #5 /lib/libc.so.6(__libc_start_main+0xdf) [0x408d5f] #6 smbd [0x5a54f1] [2006/02/15 15:47:21, 0] smbd/server.c:main(798) smbd version 3.0.14a-2 started. Copyright Andrew Tridgell and the Samba...
2006 Aug 10
6
3.0.20 -> 3.0.23 SID/group error?? Won't connect.
Gerry, all: HELP! On mandriva, I compiled samba from source and got it running, but I cannot connect from windows. (see my post from earlier "[Samba] Compiling and Configuring Samba for Mandrival") I think this relates to the group/SID changes discussed in the release notes. However, I'm not smart enough to figure it out. The tarball compiled and installed fine. It
2005 Aug 10
0
[GOLUM] RE: pdbedit not working as documented
...anf(user_sid, "%d", &u_rid) != 1) { > ??????????????????????????????fprintf(stderr, "Error passed string is not > a complete user SID or RID!\n"); > ??????????????????????????????return -1; > ??????????????????????} > ??????????????????????sid_copy(&u_sid, get_global_sam_sid()); > ??????????????????????sid_append_rid(&u_sid, u_rid); > ??????????????} > ??????????????pdb_set_user_sid (sam_pwent, &u_sid, PDB_CHANGED); > ??????} > ??????if (group_sid) { > ??????????????DOM_SID g_sid; > ??????????????if (!string_to_sid(&g_sid, group_sid)) {...
2006 Apr 21
0
net getlocalsid Segmentation Fault
...led to store generated machine SID. [2006/04/21 18:36:05, 0] lib/util.c:smb_panic2(1576) PANIC: Could not generate a machine SID [2006/04/21 18:36:05, 0] lib/util.c:smb_panic2(1584) BACKTRACE: 13 stack frames: #0 net(smb_panic2+0x8a) [0xdb418a] #1 net(smb_panic+0x19) [0xdb43e9] #2 net(get_global_sam_sid+0x1a7) [0xcdfa57] #3 net(pdb_init_ldapsam+0x186) [0xd832f6] #4 net [0xd724c5] #5 net(make_pdb_context_list+0x290) [0xd72b60] #6 net [0xd72fc3] #7 net(initialize_password_db+0xe) [0xd7314e] #8 net [0xca4cc5] #9 net(net_run_function+0x66) [0xca5c16] #10 net(main+0x6cd) [0xca63...
2009 Sep 23
1
Broken samba
...m:~ # smbpasswd -a hils Failed to open file:///etc/samba/secrets.tdb Failed to open file:///etc/samba/secrets.tdb PANIC (pid 28462): could not open secrets db BACKTRACE: 6 stack frames: #0 smbpasswd(log_stack_trace+0x1a) [0x7f19fbb0029a] #1 smbpasswd(smb_panic+0x1f) [0x7f19fbb0036f] #2 smbpasswd(get_global_sam_sid+0x547) [0x7f19fba6eb77] #3 smbpasswd(main+0x514) [0x7f19fba123f4] #4 /lib64/libc.so.6(__libc_start_main+0xe6) [0x7f19f924e586] #5 smbpasswd [0x7f19fba11ac9] Segmentation fault barrowhillfarm:~ # Any suggestions would be gratefully received :) Bob -- Registered Linux User #463880 FSFE Member...
2005 Mar 17
0
usrmgr.exe and problems
...d, 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; + } if(!pdb_update_sam_account(pwd)) { pdb_free_sam(&pwd); @@ -3624,12 +3628,16 @@ sid_copy(&user_sid, get_global_sam_sid()); sid_append_rid(&user_sid, q_u->rid); - + + ret = pdb_init_sam(&sam_user); + if (!NT_STATUS_IS_OK(ret)) return ret; + become_root(); check = pdb_getsampwsid(sam_user, &user_sid); + unbecome_root(); if (check != True) { pdb_free_sam(&sam_user);...
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
2023 Oct 14
3
Compiling within Samba Source-Tree
...eeds -lcrypto Please let me know how. There's another problem: My daemon does some sort of initilization which I copied from smbpasswd.c In short this initialization looks like: configfile=get_dyn_CONFIGFILE(); lp_load_global(configfile); secrets_init(); initialize_password_db(False, NULL); get_global_sam_sid(); domain=lp_workgroup(); After this initialization the daemon accepts connections and calls local_change_password() Works very well but initialize_password_db() produces the following warning: no talloc stackframe at ../../source3/passdb/machine_account_secrets.c:60, leaking memory So here...