search for: pdb_update_sam_account

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

2004 Mar 15
0
join domain without root
...netdom and via sysprep/mini-setup. + * Do as root (bracket within become_root()/unbecome_root() if it is + * a domain admin, updating his own machine password. (Otherwise the + * pdb_ calls fail for non-root.) + * More precisely: bracket pdb_getsampwrid if I am a domain admin; then + * also bracket pdb_update_sam_account if rid is my own machine account. + */ + do_become_root = 0; + if (geteuid()) { + struct passwd* pass; + /* Should we use current_user->uid, or current_user->conn->uid + * and current_user->conn->user, for any of this? */ + if ( (pass=sys_getpwuid(geteuid())) != NULL...
2002 Jun 27
1
Patch for 2.2.5 (start_tls with OpenLDAP 2.0.x) is not working ...
...9;: passdb/pdb_ldap.o(.text+0x1cb0): multiple definition of `pdb_delete_sam_account' passdb/pdb_tdb.o(.text+0x1580): first defined here /usr/i486-suse-linux/bin/ld: Warning: size of symbol `pdb_delete_sam_account' ch anged from 945 to 570 in passdb/pdb_ldap.o passdb/pdb_ldap.o: In function `pdb_update_sam_account': passdb/pdb_ldap.o(.text+0x1ef0): multiple definition of `pdb_update_sam_account' passdb/pdb_tdb.o(.text+0x1d70): first defined here /usr/i486-suse-linux/bin/ld: Warning: size of symbol `pdb_update_sam_account' ch anged from 28 to 496 in passdb/pdb_ldap.o passdb/pdb_ldap.o: In function...
2000 Jan 03
3
compile problems
Hello all, This is my first time on the list. I just dl'ed thet latest samba, 2.0.6 and during my compile with linux 5.2 I get: smbd/files.o: in function `file_new`: smbd/files.o(.text+0xb8): undefined reference to `__bzero` .... Has anyone seen something like this before? any hints would be greatly appriciated. If I am on the wrong list please inform me where I can get the answeres to
2004 Jan 30
0
[PATCH] Group mapping primary group SID update
...u, I couldn't make this patch work with TDB backend. I think it is very simple to fix : the problem is pdb_ldap and pdb_tdb doesn't update sam account the same way : pdb_tdb.c invalidates the iterator during a sam update (while pdb_ldap doesn't), so the main loop crashes after the first pdb_update_sam_account while trying to use pdb_getsampwent. The patch may be easy to fix and can be a good start for an final bugfix. --------------------- Start of updatesid.patch --------------------- --- utils/net_groupmap.c.orig 2003-09-24 19:16:13.000000000 +0200 +++ utils/net_groupmap.c 2004-01-29 13:38:0...
2005 Mar 17
0
usrmgr.exe and problems
...39;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_primary_group(pwd) ) { + pdb_free_sam(&pwd); + return False; + } if(!pdb_update_sam_acco...
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 Sep 16
0
Compiling Samba with LDAP support on Solaris 9 x86
...first referenced symbol in file pdb_endsampwent rpc_server/srv_samr_nt.o pdb_delete_sam_account passdb/passdb.o pdb_getsampwrid rpc_server/srv_samr_nt.o pdb_getsampwnam smbd/chgpasswd.o pdb_update_sam_account smbd/chgpasswd.o pdb_add_sam_account passdb/passdb.o pdb_getsampwent rpc_server/srv_samr_nt.o pdb_setsampwent rpc_server/srv_samr_nt.o ld: fatal: Symbol referencing errors. No output written to bin/smbd collect2: ld returned 1 exi...
2004 Mar 11
0
Samba 3.0.2a+LDAP+PDC
...11 18:24:50, 0] lib/util.c:smb_panic(1408) BACKTRACE: 27 stack frames: #0 smbd(smb_panic+0x11c) [0x81c3c3c] #1 smbd [0x81b2372] #2 /lib/tls/libc.so.6 [0x420275c8] #3 smbd(smbldap_make_mod+0xb5) [0x822c125] #4 smbd [0x819d916] #5 smbd [0x819f55e] #6 smbd [0x8197658] #7 smbd(pdb_update_sam_account+0x2e) [0x81989fe] #8 smbd [0x813b4cb] #9 smbd(_samr_set_userinfo2+0x15b) [0x813c4eb] #10 smbd [0x813275e] #11 smbd(api_rpcTNP+0x159) [0x814b109] #12 smbd(api_pipe_request+0xaf) [0x814aecf] #13 smbd [0x81445c6] #14 smbd [0x8144919] #15 smbd [0x8144b5b] #16 smbd [0x8144d5c]...
2003 Aug 08
0
smbpasswd -m, changing account to a machine account.
...(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_len-1, "Failed to modify entry for user %s.\n", user_name); pdb_free_sam(sam_pass); - ---------------------------------------------------------------------- Zuse Institute Berlin, Takustrasse 7 D-14195 Berl...
2002 Mar 01
3
--with-ldapsam Compile error on Solaris 8
...: passdb/pdb_ldap.c:190: warning: passing arg 4 of `ldap_search_s' discards qualifiers from pointer target type passdb/pdb_ldap.c: In function `pdb_delete_sam_account': passdb/pdb_ldap.c:883: `LDAP_OPT_ERROR_STRING' undeclared (first use in this function) passdb/pdb_ldap.c: In function `pdb_update_sam_account': passdb/pdb_ldap.c:936: `LDAP_OPT_ERROR_STRING' undeclared (first use in this function) passdb/pdb_ldap.c: In function `pdb_add_sam_account': passdb/pdb_ldap.c:1028: `LDAP_OPT_ERROR_STRING' undeclared (first use in this function) make: *** [passdb/pdb_ldap.o] Error 1 Solaris 8 pat...
2003 May 19
6
XP Joining Samba Domain
I have successfully joined the XP machine to the domain. The strange part is, that it only wanted to be joined if it connected to the PDC and not the BDC. The way it is set-up is that the XP machine and a BDC is in one branch and the PDC is in another. Every time I would try to connect via the BDC, it would return a value ACCESS DENIED I stopped the smb service on the BDC, and got it to
2003 Dec 01
0
No subject
...first referenced symbol in file pdb_endsampwent rpc_server/srv_samr_nt.o pdb_delete_sam_account passdb/passdb.o pdb_getsampwrid rpc_server/srv_samr_nt.o pdb_getsampwnam smbd/chgpasswd.o pdb_update_sam_account smbd/chgpasswd.o pdb_add_sam_account passdb/passdb.o pdb_getsampwuid rpc_server/srv_samr_nt.o pdb_getsampwent rpc_server/srv_samr_nt.o pdb_setsampwent rpc_server/srv_samr_nt.o ld: fatal: Symbol referencing erro...