| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Hopefully this should fix the buildfarm.
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
|
| |
smbpasswd -L for non-root on the buildfarm only.
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
| |
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
This fixes a segfault in smbpasswd -r
|
|
|
|
|
| |
return malloced strings.
Jeremy.
|
|
|
|
|
|
|
| |
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
|
| |
|
| |
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
|
|
|
|
| |
as used.
This means that smbpasswd -c user (which in htpasswd creates a new file)
and smbpasswd -c /not/my/smb.conf should give errors an admin will
think to chase down.
Andrew Bartlett
|
|
|
|
|
|
|
|
| |
winbind
who did not run the idle events to drop ldap connections.
Volker
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make 2 important changes. pdb_get_methods()
returning NULL is a *fatal* error. Don't try
and cope with it just call smb_panic. This
removes a *lot* of pointless "if (!pdb)" handling
code. Secondly, ensure that if samu_init()
fails we *always* back out of a function. That
way we are never in a situation where the pdb_XXX()
functions need to start with a "if (sampass)"
test - this was just bad design, not defensive
programming.
Jeremy.
|
|
|
|
| |
<aruna.prabakar@hp.com>
|
|
|
|
| |
smbpasswd -e should probably for a password
|
|
|
|
| |
* replace all pdb_{init,fill}_sam_pw() calls with samu_set_unix()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to make full use of the new talloc() interface. Discussed with Volker
and Jeremy.
* remove the internal mem_ctx and simply use the talloc()
structure as the context.
* replace the internal free_fn() with a talloc_destructor() function
* remove the unnecessary private nested structure
* rename SAM_ACCOUNT to 'struct samu' to indicate the current an
upcoming changes. Groups will most likely be replaced with a
'struct samg' in the future.
Note that there are now passbd API changes. And for the most
part, the wrapper functions remain the same.
While this code has been tested on tdb and ldap based Samba PDC's
as well as Samba member servers, there are probably still
some bugs. The code also needs more testing under valgrind to
ensure it's not leaking memory.
But it's a start......
|
|
|
|
| |
macro which sets the freed pointer to NULL.
|
|
|
|
|
|
|
|
|
|
| |
This fixes bug #1386.
The initial changes had been made by Carsten Höger <choeger at
open-xhange dot com> for Samba 2.2 while being at SuSE. *sigh*
To not duplicate code from smbpasswd in pdbedit stdin_new_passwd() and
get_pass() are moved from smbpasswd to utils/passwd_util.c.
|
|
|
|
| |
Sync with trunk as off r13315
|
|
|
|
|
|
|
|
|
|
|
|
| |
lp_load() could not be called multiple times to modify parameter settings based
on reading from multiple configuration settings. Each time, it initialized all
of the settings back to their defaults before reading the specified
configuration file.
This patch adds a parameter to lp_load() specifying whether the settings should
be initialized. It does, however, still force the settings to be initialized
the first time, even if the request was to not initialize them. (Not doing so
could wreak havoc due to uninitialized values.)
|
|
|
|
|
|
|
|
|
| |
Check that ldap admin dn is defined in smb.conf before
setting the ldap password in secrets.tdb
Based on patch by William Jojo <jojowil@hvcc.edu>
Simo.
|
|
|
|
| |
Volker
|
| |
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
| |
<metaur@telia.com>
Jeremy.
|
| |
|
|
|
|
|
| |
in smbpasswd. Use -s if you want to script this.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
OK, what was happening here was that we would invalidate global_sam_sid
when we set the sid into secrets.tdb, to force a re-read.
The problem was, we would do *two* writes into the TDB, and the second one
(in the PDC/BDC case) would be of a NULL pointer. This caused smbd startups
to fail, on a blank TDB.
By using a local variable in the pdb_generate_sam_sid() code, we avoid this
particular trap.
I've also added better debugging for the case where this all matters, which
is particularly for LDAP, where it finds out a domain SID from the sambaDomain
object.
Andrew Bartlett
|
|
|
|
|
|
| |
new system and a user is being added via pdbedit/smbpasswd.
Found at Connectathon setup.
Jeremy.
|
|
|
|
|
|
|
|
| |
remote_password_change().
Sorry for the original bug.
Andrew Bartlett
|
| |
|
| |
|
|
|
|
| |
-w option need the password on the command line
|
| |
|
|
|
|
|
|
|
|
|
| |
for me without this patch. I'm not sure if I interpreted your patch to
this code right.
Thanks,
Volker
|
| |
|
| |
|
|
|
|
|
|
|
| |
strupper_m/strlower_m.
I really want people to think about when they're using multibyte strings.
Jeremy.
|
| |
|
|
|
|
|
| |
that is now possible to, for example, load a module which contains
an auth method into a binary without the auth/ subsystem built in.
|
|
|
|
|
|
| |
warnings. (Adds a lot of const).
Andrew Bartlett
|
| |
|
|
|
|
|
|
| |
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- change auth_sam to use the initialisation flags to determine if
the password attributes are set
- add const to secrets.c, cliconnect.c
- passdb: fix spelling in pdb_ldap, add group mapping back to smbpasswd
- SAMR: add debugs to show what fails for group enum.
Andrew Bartlett
|
| |
|