1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

9076 Commits

Author SHA1 Message Date
Andrew Bartlett
80f1f68b6f Any conversion to POPT must *always* add @BUILD_POPT@ or it just won't work on
systems other than linux.

Andrew Bartlett
-
Richard Sharpe
6db6a48711 The fixes from Tom plus a minor update from me. -
Andrew Bartlett
b70f2a8047 Extra little fix to vl's patch. Make sure the passdb and testparm messages
say exactly the same thing - in particular that we can algorithmic rid base ==
1000, and use the BASE_RID macro to avoid the use of magic numbers.

Andrew Bartlett
-
Andrew Tridgell
918099f096 make_server_info_guest() can need root for the ldapsam backend -
Volker Lendecke
ce5b2d991b Force algorithmic rid base to sane values and talk about it.
Volker
-
Jelmer Vernooij
162431a88c Remove obsolete function usage and some unused variables -
Jelmer Vernooij
15c71551db Remove dummy function I used for testing -
Jelmer Vernooij
c8589a567b Convert to popt.
Removed -o and -a options - these have been broken since 2.2 without complaints from users
-
Jelmer Vernooij
1602d58949 Add more options to popt_common and use them. Current ones are:
-V Version information
 -n Set netbios name
 -l Set directory to store log files in
 -d Set debuglevel
 -s Load specified configuration file
 -O Set socket options
-
Andrew Bartlett
88455313f6 Clean up this a little - add comments describing a bit of what is going on
here.
-
Andrew Bartlett
18abaeffda Add a 'ldap trust ids' option that lets pdb_ldap check for posixAccount
attributes rather than calling getpwnam() on the user.

This should help fix some of metze's performance issues - particularly on
enumerations.

There is a consequential change to the operation of 'non unix account's in LDAP
- they are no longer restricted to being 'within' the NUA range, but will
always be added to that range.

Finally, there is the doco for this and the previous LDAP SSL changes.
-
Richard Sharpe
82f6b26403 Make sure that %u is used for SID elements ... -
Andrew Bartlett
f91c363bc0 Return the result code, not false (0 == success) on error... -
Andrew Bartlett
cfa1e459d7 Fixes for pdb_ldap:
- Default is now for start-tls, on the ldap (not ldaps) port
 - We check for 'I am currently root' in the right place now, and don't
   accidentily use a cached connection.
 - We don't loop on failure to be root, or some other errors.

 - A bit cleaner error reporting for add/modify.

 - Both the OpenLDAP and manual URI parsing tested.

Andrew Bartlett
-
Tim Potter
0bb9bc1962 Fix --set-auth-user command to delete entries from the secrets file when an
empty username/password is passed on the command line.  Previously we were
leaving the domain name set and the password set to a NULL character.

Added a --get-auth-user command to display the restrict anonymous username
information.  Can only be run successfully by root.
-
Tim Potter
846b549494 Some winbindd cleanups I made trying to fix cr1020:
- move winbindd client handling into accessor functions in
   winbindd_util.c

 - move some winbindd socket routines into accessor functions in
   winbindd_utils.c

(The deadlock situation mentioned in the appliance branch is probably
not applicable since we don't clear the connection cache on SIGHUP.
Perhaps we should?)
-
Jelmer Vernooij
a15434314f Add popt_common_socket_options -
Tim Potter
7badccda46 Handle the case where the password used in RPC connections (for restrict
anonymous support) is blank.
-
Tim Potter
62ab0f8cbe Display pipe name in rpc bind failure debug. -
Jelmer Vernooij
9ea7440ac4 Convert to popt -
Richard Sharpe
7eb89ba467 Add the changes to change the SIDs ...
You must make two passes over NTUSER.DAT, one for the OWNER SID and one for
GROUP SID.

I have not tested this yet ... that is, I have not tried to use this on
a Win2K etc server.
-
Richard Sharpe
dbc608ba7e Add more. Parse SIDs on the command line ... soon will actually mod the
SecDescs in the NTUSER.DAT ...
-
Richard Sharpe
26857be78c Fix a problem with spaces vs tabs -
Richard Sharpe
095af10ff2 Revert that stupid one line change. -
Richard Sharpe
59735a5aac Fix small typo ... -
Richard Sharpe
daefe52a56 Add more code to the profiles program and add Makefile.in support. -
Tim Potter
bd64de3716 Tidyup of some DCERPC pipe connection debugs. The new LSA_DS stuff
generates some errors we haven't seen before which are inappropriately
logged at level 0.
-
Jeremy Allison
d05b147fb3 Fix slowdown because of enumerating all print queues on every smbd startup.
Jeremy.
-
Jim McDonough
6ec5dce698 Re-enable use of existing kerberos tickets. -
Jeremy Allison
9e47aa32ed Check the long_archi name is not null.
Jeremy.
-
Jelmer Vernooij
a82dbb3c22 add smb_load_modules() to load a list of modules - does this function look ok ? -
Volker Lendecke
54115fd16f search & replace doesn't always work reliably :-)
Volker
-
Richard Sharpe
322151509c Add a small utility that can print out the SEC DESCs in NTUSER.DAT.
This is an early, messy version of the code, but it illustrates what can
be done. It currently only prints the Owner SID, Group SID, and Perms and
SID from each ACE.

Once more work is done, it could actually walk the SEC DESCs and ACEs and
change the SIDS ...
-
John Terpstra
ce5a708454 Applied Buchan Milne's patches. -
Jelmer Vernooij
ff10786c9d Rerun autoconf -
Jim McDonough
00d4e5c67b Fix build. Don't use BSD setenv. Use POSIX putenv.
Jeremy, it wasn't me!!!!!!
-
Jelmer Vernooij
86eb0a25b1 use sys_dlopen instead of dlopen (thanks to jra for noticing) -
Tim Potter
6945e89e2d Fix boog in argument list for nt_create_andx. -
Jelmer Vernooij
a8d2dd8d00 - Remove RTLD_GLOBAL
- make smb_load_module() return the return value of init_module()
-
Andrew Tridgell
732bc4519f added a timegm() function for systems that don't have it -
Jelmer Vernooij
4d1206be52 Add init_module_function typedef for new module system -
Jelmer Vernooij
b5d05d3ec6 Add initial vesion of new module system -
John Terpstra
d134d66f98 Added Buchan Milne's DESTDIR patch. -
Jelmer Vernooij
94647051ad Add autom4te.cache (used by newer autoconfs) -
Andrew Bartlett
5c4967c70d Fix a nice little memory leak in our uid changing code.
Andrew Bartlett
-
Tim Potter
3a7f8a568e Added close and unlink functions. -
Jeremy Allison
78df2c916a Fix fd leak with kernel change notify.
Jeremy.
-
Volker Lendecke
5c0869be32 Implement 'net maxrid'. Needed to find the maximum current rid to
set 'algorithmic rid base' correctly after a 'net rpc vampire'.

Volker
-
Jelmer Vernooij
8c15db105a Fix bug in '-d' -
Andrew Bartlett
3418da1645 One more step towards to better PDC.
This patch, from "Stefan (metze) Metzmacher" <metze@metzemix.de> implements an
LDAP connection cache.  This removes the quite silly situation where every
single passdb operation involved a new LDAP connection.

The hope is that this will give us a decent performance boost in some usrmgr
related activities, and in the sid->name/sid->uid code.

The remaining things I think are 'todo' for pdb_ldap (in the near term) are:
 - intergrate volker's next_rid patch for NUA accounts,
 - add a 'trust ldap ids' option (remove Get_Pwnam() hit on enumerations).
 - put the group mapping actually into ldap
 - Schema fixes and do utf8 conversion
 - server failover (try a second server for the rebind on fail)
 - ensure we block between an 'add' and the ldap master replicating to our
   local slave (mezte found this issue, kills domain joins)

Andrew Bartlett
-