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

10345 Commits

Author SHA1 Message Date
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
Jelmer Vernooij
bae2a38b17 Sync to actual state 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
dfc3d55493 Large number of updates - new structure of the HOWTO, better names, introductions, updating to 3.0 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
7aad086c9a testsmbc should only be in examples 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
ea026d74c1 Move encryption algorithm explanation to dev-doc 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b279cc0653 Move explanation of encryption algorithm to dev-doc 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
91f9c9e1d8 Don't pass any booleans to pdb_set_* functions 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
e803bfde3d Don't pass true to pdb_set_* functions 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b69d5fffd9 Handle -p correctly 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
33c7a296b3 Adapt to metze's PDB_SET patch 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
5c6041f713 Fix typo 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