1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

9140 Commits

Author SHA1 Message Date
Jeremy Allison
e39e2b4c34 Missed extern declaration.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4ec381d642 Fix to correctly return NT_STATUS_DELETE_PENDING.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
075987f1db Fix to correctly return NT_STATUS_DELETE_PENDING.
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
2e7a904856 Small fix from Guenther Deschner <guenther.deschner@suse.de>
(remove junk chars)
0001-01-01 00:00:00 +00:00
Martin Pool
248067931a pytdbpack_pack_data: Allow first argument to be any kind of Number,
not just an Integer.  Coerce appropriately.
0001-01-01 00:00:00 +00:00
Martin Pool
db67c5f7e5 pytdbpack_pack_data: If the first argument to a 'B' code is not an
Integer, raise an error rather than just returning Null, which breaks
the interpreter.
0001-01-01 00:00:00 +00:00
Richard Sharpe
39136827d1 A small fix by Andy Thomas. Now that incrementing the Auth index has
been pushed into a macro, things do not work so well. Move the increment out
of the array index.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b4f00ceaad Tell popt this command requires 1 'normal' argument and has two optional 'normal' parameters 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b0788c3e8e Don't generate ../examples/pdb/{xml,mysql}/configure 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
e8a7755647 Don't generate ../examples/pdb/mysql/Makefile and ../examples/pdb/xml/Makefile 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b68106a79e Move pdb_xml to source/ 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
1d742e14ad Move pdb_mysql to source/passdb 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
53736430f8 Rerun autoconf 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
eb8965eeff Add support to build plugins in source/ 0001-01-01 00:00:00 +00:00
Andrew Bartlett
89d8ebd520 Merge vl's 'algorithmic rid base' patch, and my changes to pdb_smbpasswd's NUA
support from HEAD -> 3.0

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Richard Sharpe
6b218da645 See if char * makes the Irix C compiler happier than void *? 0001-01-01 00:00:00 +00:00
Tim Potter
cf6d2d9d9e Remove DRIVERFILE constant. It was removed with the old win95
printer driver stuff.
0001-01-01 00:00:00 +00:00
Martin Pool
49a0ba46e6 pytdbpack_pack_data: Oops, since B is separately encoded as buffer and
length we need separate counters traversing the format and value
sequences to pack them.
0001-01-01 00:00:00 +00:00
Martin Pool
db2c393dd4 Update test cases. 0001-01-01 00:00:00 +00:00
Richard Sharpe
f50051120f Make all of the required (I think) changes to make this code work for
big endian and little endian systems.
0001-01-01 00:00:00 +00:00
Tim Potter
fd9aff634b Rerun autoconf. 0001-01-01 00:00:00 +00:00
Tim Potter
01a89690a2 Fix mysterious error message when running 'make python_{ext,install}'
without configuring with python.
0001-01-01 00:00:00 +00:00
Richard Sharpe
8f45315b91 Start handling Big Endian machines as well as little endian. 0001-01-01 00:00:00 +00:00
Martin Pool
d72b144e03 pytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form list
by appending, rather than preallocating.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
c70a3191d4 VFStest already has pop_common via smbd, so don't link it twice.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Martin Pool
7827536c15 Add more test cases that now work. 0001-01-01 00:00:00 +00:00
Martin Pool
2085595565 pytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer
or Long arguments.
0001-01-01 00:00:00 +00:00
Martin Pool
2593e15883 Make sure uint32 unpacking is unsigned, and generates a Python long so
that it can represent all the unsigned values
0001-01-01 00:00:00 +00:00
Martin Pool
a9c2817c79 Re-add some tests which do work with both implementations 0001-01-01 00:00:00 +00:00
Martin Pool
6be885da2c Comment out test cases where the old and new parser are different. 0001-01-01 00:00:00 +00:00
Martin Pool
30525aee33 pytdbpack_calc_reqd_len: Correct calculation of packed length of
string types
0001-01-01 00:00:00 +00:00
Martin Pool
20d88a7d1e Change to representing buffers ('B') as (LEN, STRING) in Python,
rather than as just a string.  Makes the code more messy, but needed
for compatibility with existing PSA Python code which seems to be too
knotty to separate out.
0001-01-01 00:00:00 +00:00
Martin Pool
631945a03a test_pack_extra: Add additional cases.
test_pack_failures: Remove cases for which old code is too lax.
0001-01-01 00:00:00 +00:00
Martin Pool
12c3bb99a5 test_pack_extra: Better way of testing packing with extra values. 0001-01-01 00:00:00 +00:00
Martin Pool
0c1cfe5598 pytdbpack_calc_reqd_len: It's no longer an error to supply more data
values than are consumed.
0001-01-01 00:00:00 +00:00
Martin Pool
21e4186642 Doc 0001-01-01 00:00:00 +00:00
Martin Pool
b0143e77d6 test_pack_extra: The old code does not complain when there are too
many data values for the format.  Test that the new code behaves the
same way.
0001-01-01 00:00:00 +00:00
Tim Potter
0310e539bb Sync with HEAD. 0001-01-01 00:00:00 +00:00
Martin Pool
04cad599f4 test_pack_failures: The old code does not complain when there are too
many data values for the format, so we don't test that here.

test_large: New test case for packing/unpack a thousand values.
0001-01-01 00:00:00 +00:00
Martin Pool
1b681bd524 pytdbpack_calc_reqd_len: Make exception be thrown correctly when a
non-string is used with a string format code.  (It was being generated
but not thrown.)

Also call checked versions of some functions rather than FAST_*
versions.
0001-01-01 00:00:00 +00:00
Martin Pool
5ade138bb8 test_pack_failures: The old and new code is not exactly the same about
error detection, so now we don't care what exact error is returned as
long as we get something.
0001-01-01 00:00:00 +00:00
Martin Pool
ed0e4a670d test_pack: Coercing a dictionary to a sequence as it is packed is not
compatible with the old code, and so it is removed from the test case.
0001-01-01 00:00:00 +00:00
Martin Pool
96741a251c Add FIXME about --with-python 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
fdd70614d2 Move testsmbc.c to examples 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
373f8bcd29 remove 'sam backend' 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
24dd3886e8 Add @BUILD_POPT@ to smbclient 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b69d5fffd9 Handle -p correctly 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
aeb94bb0d7 Make IRIX happy 0001-01-01 00:00:00 +00:00
Andrew Bartlett
a0d13cd3f0 Becouse lib/popt_common.c uses POPT, we must not include it in LIB, we must
link it on a per-program basis.

Next step is to make -lpopt apply only to the right programs, which might
help some of this kind of thing show up on Linux.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
2c97b7e648 Allow 'normal' accounts in the non-unix-account range for smbpasswd - I hope
this will fix some of the problems on the build farm @ Compaq (where they have
a *lot* of accounts...).
0001-01-01 00:00:00 +00:00
Andrew Bartlett
5b5b8de70e Fix debug 0001-01-01 00:00:00 +00:00
Andrew Bartlett
2115335857 Move to the use of the 'initialised' flag, rather than the fact the pointer is
NULL.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
dd9c6214d1 Try to fix popt dependencies - we were linking to popt before we built with it.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Richard Sharpe
6db6a48711 The fixes from Tom plus a minor update from me. 0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Andrew Tridgell
918099f096 make_server_info_guest() can need root for the ldapsam backend 0001-01-01 00:00:00 +00:00
Volker Lendecke
ce5b2d991b Force algorithmic rid base to sane values and talk about it.
Volker
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
162431a88c Remove obsolete function usage and some unused variables 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
15c71551db Remove dummy function I used for testing 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
c8589a567b Convert to popt.
Removed -o and -a options - these have been broken since 2.2 without complaints from users
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Simo Sorce
cf67981e73 port sec_desc headers reordering from HEAD.
Thanks to Andrew Brtlet for the diff :-)
0001-01-01 00:00:00 +00:00
Andrew Bartlett
8abe71c4d7 Merge of my 'ldap trust ids' patch from HEAD.
This hopefully provides a peformance boost by not hitting getpwnam() for every
entry in an enumeration, instead reteriving entries directly (if available).

idra has reviewed this patch.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
88455313f6 Clean up this a little - add comments describing a bit of what is going on
here.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Richard Sharpe
82f6b26403 Make sure that %u is used for SID elements ... 0001-01-01 00:00:00 +00:00
Andrew Bartlett
2044d60bbe Merge passdb from HEAD -> 3.0
The work here includes:
 - metze' set/changed patch, which avoids making changes to ldap on unmodified
attributes.

 - volker's group mapping in passdb patch

 - volker's samsync stuff
 - volkers SAMR changes.

 - mezte's connection caching patch

 - my recent changes (fix magic root check, ldap ssl)

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
f91c363bc0 Return the result code, not false (0 == success) on error... 0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Tim Potter
dcaf21efc5 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.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Tim Potter
ee0e3d31a1 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?)
0001-01-01 00:00:00 +00:00
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?)
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
a15434314f Add popt_common_socket_options 0001-01-01 00:00:00 +00:00
Tim Potter
b376b7dad0 Handle the case where the password used in RPC connections (for restrict
anonymous support) is blank.
0001-01-01 00:00:00 +00:00
Tim Potter
7badccda46 Handle the case where the password used in RPC connections (for restrict
anonymous support) is blank.
0001-01-01 00:00:00 +00:00
Tim Potter
62ab0f8cbe Display pipe name in rpc bind failure debug. 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
9ea7440ac4 Convert to popt 0001-01-01 00:00:00 +00:00
Tim Potter
70838b33a6 Display pipe name in rpc bind failure debug. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
b8951a6551 Merges from HEAD:
- off-by-one fix - fixes warnings about insufficent space in buffer.
- fix a memleak in uid.c - we forgot to free() the allocated struct.
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Richard Sharpe
dbc608ba7e Add more. Parse SIDs on the command line ... soon will actually mod the
SecDescs in the NTUSER.DAT ...
0001-01-01 00:00:00 +00:00
Richard Sharpe
26857be78c Fix a problem with spaces vs tabs 0001-01-01 00:00:00 +00:00
Richard Sharpe
095af10ff2 Revert that stupid one line change. 0001-01-01 00:00:00 +00:00
Richard Sharpe
59735a5aac Fix small typo ... 0001-01-01 00:00:00 +00:00
Richard Sharpe
daefe52a56 Add more code to the profiles program and add Makefile.in support. 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Tim Potter
40d5112048 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d05b147fb3 Fix slowdown because of enumerating all print queues on every smbd startup.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
6efd17ef78 Fix slowdown because of enumerating all print queues on every smbd startup.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
6ec5dce698 Re-enable use of existing kerberos tickets. 0001-01-01 00:00:00 +00:00
Jeremy Allison
9e47aa32ed Check the long_archi name is not null.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e504d1170d Check the long_archi name for NULL.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
134ddca56b One more instance of AUTHLIBS...hopefully we can get most 3.0 builds back
up on the farm.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
a82dbb3c22 add smb_load_modules() to load a list of modules - does this function look ok ? 0001-01-01 00:00:00 +00:00
Volker Lendecke
54115fd16f search & replace doesn't always work reliably :-)
Volker
0001-01-01 00:00:00 +00:00
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 ...
0001-01-01 00:00:00 +00:00
Jim McDonough
3b32e6bf5a Steve Langasek's authentication lib (libpam, libcrypt) split didn't make
it into Makefile.in in 3.0.  This should fix a few builds.
0001-01-01 00:00:00 +00:00
John Terpstra
4a5c926ac5 Added DESTDIR patch from Buchan Milne. 0001-01-01 00:00:00 +00:00