1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-26 23:33:15 +03:00
Commit Graph

3201 Commits

Author SHA1 Message Date
Stefan Metzmacher
f8bc6b9ad0 r25839: use nss_wrapper code in samba4 if
--enable-nss-wrapper or --enable-developer is given

metze
2007-12-21 05:44:20 +01:00
Stefan Metzmacher
17f9189fb4 r25838: libreplace: include nss_wrapper.h if NSS_WRAPPER is defined
metze
2007-12-21 05:44:19 +01:00
Stefan Metzmacher
1f51a2db0a r25837: nss_wrapper: add nss_wrapper.pl
This script will be used to add|delete passwd|group entries

metze
2007-12-21 05:44:19 +01:00
Stefan Metzmacher
fa255cc4b5 r25836: nss_wrapper: add support for groups and return EPERM in initgroups()
The NSS_WRAPPER_GROUP envvar should point to
the /etc/group style file.

Note: NSS_WRAPPER_PASSWD and NSS_WRAPPER_GROUP both
      need non-empty values to enable NSS Wrapper
      support.

metze
2007-12-21 05:44:18 +01:00
Stefan Metzmacher
c98028458a r25835: nss_wrapper: add support for passwd accounts
The NSS_WRAPPER_PASSWD envvar should point to
the /etc/passwd style file.

metze
2007-12-21 05:44:18 +01:00
Stefan Metzmacher
9fdde8d5f5 r25834: nss_wrapper: add lib/nss_wrapper skeleton
metze
2007-12-21 05:44:18 +01:00
Stefan Metzmacher
26bfdff487 r25830: fix compiler warning
metze
2007-12-21 05:44:16 +01:00
Günther Deschner
947fff9941 r25803: Make our security descriptor acl manipulation methods more generic so that we
can add and delete ACEs for SACLs as well as for DACLs.

Guenther
2007-12-21 05:44:06 +01:00
Stefan Metzmacher
7d6c3e31de r25802: fix the build on solaris, void functions doesn't return values
metze
2007-12-21 05:44:05 +01:00
Günther Deschner
c96047d022 r25799: Add dump_data_skip_zeros() which omits 16 zero bytes in a row (if not at the
beginning or the end of a blob). Usefull when inspecting protocols that
exchange huge mostly empty blobs.

Guenther
2007-12-21 05:44:04 +01:00
Stefan Metzmacher
47f865165e r25783: socket_wrapper: don't include "includes.h"
metze
2007-12-21 05:43:57 +01:00
Andrew Bartlett
2a835d900f r25755: Fix a couple of memory leaks, in particular a new leak onto the NULL
context caused by my objectclass module work.

Andrew Bartlett
2007-12-21 05:43:46 +01:00
Stefan Metzmacher
5648c8a0de r25728: [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
metze
2007-12-21 05:43:31 +01:00
Stefan Metzmacher
b594d9c9fa r25726: [libreplace] move and fix getaddrinfo configure checks
- move getaddrinfo check into getaddrinfo.m4
- add getaddrinfo.o to LIBREPLACEOBJ so that we really build the replacements

metze
2007-12-21 05:43:30 +01:00
Stefan Metzmacher
25a892f2ad r25725: merge commit bc9008aa1d from v3-2-test:
Author:     Jeremy Allison <jra@samba.org>
AuthorDate: Wed Oct 24 14:40:24 2007 -0700

We do support name lookups for host and service in our replacement
code - remove the restrictions from the original Postgres code.

Jeremy.
2007-12-21 05:43:29 +01:00
Stefan Metzmacher
57d5cf4b5f r25724: - include getaddrinfo.h after we have defined struct addrinfo
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch]
- define HAVE_<name> macros when we replace functions

metze
2007-12-21 05:43:29 +01:00
Stefan Metzmacher
8b92b81101 r25718: [libreplace] if we replace types define the HAVE_<type> macro
this is needed as heimdal's roken.h also tries to replace the types

metze
2007-12-21 05:43:26 +01:00
Stefan Metzmacher
12cec014c4 r25715: [libreplace] move definition of struct addrinfo so that it can use socklen_t
metze
2007-12-21 05:43:25 +01:00
Stefan Metzmacher
8bd2cf71be r25714: [libreplace] move define of a constant to near to the others
metze
2007-12-21 05:43:25 +01:00
Stefan Metzmacher
a3657a4e71 r25713: [libreplace] include socket_wrapper.h after we have typedef'ed socklen_t
metze
2007-12-21 05:43:24 +01:00
Stefan Metzmacher
95462d614d r25695: [libreplace] fix the standalone build of libreplace
all configure results which are used in replace.h
or any system/*.h should be in the in the libreplace
*.m4 files!

metze
2007-12-21 05:43:18 +01:00
Andrew Tridgell
aa9ab431e0 r25690: - only use a readonly traverse in ldb_search when not in a transaction. When we are in a transaction then we could be in a top level modify operation (such as rename), so we must use a writeable traverse so that the async callbacks can do the modifies while the search is progressing.
- don't do the lockall operation on the tdb during a ldb search if in
  a transaction, as this would prevent modifies by callbacks as well
2007-12-21 05:43:15 +01:00
Stefan Metzmacher
facb811bb3 r25687: Move #defined for getaddrinfo into network.h (as other
defines). Allows RHEL4 compile to work.
Jeremy.
(cherry picked from commit 0ffdf4fdee)
2007-12-21 05:43:14 +01:00
Stefan Metzmacher
5d2995c413 r25686: Added in missing def for AI_ADDRCONFIG.
Jeremy.
(cherry picked from commit 3ef3c3afc3)
2007-12-21 05:43:13 +01:00
Stefan Metzmacher
cd5069a8ca r25685: rename getsmbpass -> rep_getpass and provide the function prototype
metze
(cherry picked from commit 96820f8d8f)
2007-12-21 05:43:13 +01:00
Stefan Metzmacher
ee85577835 r25684: use "system/*.h" to get the system includes
metze
(cherry picked from commit d20c2fa274)
2007-12-21 05:43:13 +01:00
Stefan Metzmacher
5d747fcad0 r25683: fix the compilation of getpass.c and it's configure test
metze
(cherry picked from commit f4c0961a16)
2007-12-21 05:43:12 +01:00
Stefan Metzmacher
3910d06941 r25682: r16320: Ensure variable is not null before calling fclose. Klocwork #412. Jeremy.
(cherry picked from commit 33ee0cfb19)
2007-12-21 05:43:12 +01:00
Stefan Metzmacher
7099dde3fd r25681: r16245: Cope with string being zero len. Klocwork bug #410. Jeremy.
(cherry picked from commit 46c12de07f)
2007-12-21 05:43:11 +01:00
Stefan Metzmacher
249d69fd85 r25680: Volker's fix for bug #668. Change the \n after the password prompt to go to tty instead of stdout.
(cherry picked from commit 0cd1ed0424)
2007-12-21 05:43:11 +01:00
Stefan Metzmacher
a11d21790f r25679: reapply: Allow ^C to interrupt smbpasswd if using our getpass. from Jeremy
metze
(cherry picked from commit d4ae42b1b2)
2007-12-21 05:43:11 +01:00
Stefan Metzmacher
78da4477a7 r25678: reformat getpass() replacement code
metze
(cherry picked from commit 3e8f43e3cf)
2007-12-21 05:43:10 +01:00
Stefan Metzmacher
d286c0533d r25677: add missing stuff from samba3
metze
2007-12-21 05:43:09 +01:00
Andrew Tridgell
67240f380b r25676: fixed a valgrind error in the epoll event backend. The linked list
could get mucked up.
2007-12-21 05:43:09 +01:00
Andrew Bartlett
606c82f625 r25661: We don't actually need to know with DEBUG(0, ... every time we ask for
some random bytes.

Andrew Bartlett
2007-12-21 05:43:03 +01:00
Andrew Bartlett
6a5630d371 r25660: Add a new interface 'generate_secret_buffer()', to be used when we
require top-quality entropy.  We don't want to waste system enropy
generating challenges (which simply need to be unpredictable, not
secret) or when generating UUIDs.

Rework generate_random_buffer() to use /dev/urandom less often, only
to seed the existing RC4 based PRNG.  (With an exception to ensure we
don't waste this setup cost for very small entropy requests).

Perhaps we should be using heimdal's code for this instead?

This should drasticly reduce our entropy use, particularly in the
build farm (automated Samba build on hosts without much other source
of entropy).

Andrew Bartlett
2007-12-21 05:43:03 +01:00
Jelmer Vernooij
083b606496 r25630: Allow "NULL" as memory context, for consistency with the rest of the code,
which also does.
2007-12-21 05:43:02 +01:00
Jelmer Vernooij
aafd3ea03f r25628: Fix formatting, missing include. 2007-12-21 05:43:01 +01:00
Jelmer Vernooij
b0b4668333 r25627: Remove unused global. 2007-12-21 05:43:01 +01:00
Jelmer Vernooij
84a2027540 r25626: Move some debug-specific prototypes to debug.h. 2007-12-21 05:43:00 +01:00
Jelmer Vernooij
262c1c23a6 r25624: Remove ipv4_addr hack. Only causes 4 extra includes of system/network.h because we stripped down includes. 2007-12-21 05:43:00 +01:00
Jelmer Vernooij
6f88c41c31 r25614: Add trivial tdb website. 2007-12-21 05:42:53 +01:00
Stefan Metzmacher
1d2bc79aa5 r25613: verify the length and type before checking the value,
hopefully gives more info why this fails some bigendian
platforms

metze
2007-12-21 05:42:53 +01:00
Günther Deschner
7dd0d28d25 r25607: Allow to set security descriptor type flags at creation time with
security_descriptor_create().

Guenther
2007-12-21 05:42:51 +01:00
Günther Deschner
ceb2ebfbf1 r25605: Last round of registry reformats (before this gets an obsession...).
Guenther
2007-12-21 05:42:49 +01:00
Günther Deschner
176614423e r25603: More reformat.
Guenther
2007-12-21 05:42:48 +01:00
Stefan Metzmacher
507d5ca7d9 r25602: don't imply "system/network.h" within replace.h,
as this brings in the socket_wrapper.h in unexpected
code and we endup with a missing 'swrap_close' while linking

metze
2007-12-21 05:42:47 +01:00
Stefan Metzmacher
00467c2593 r25601: replace.h should never imply any "system/*.h"
(here it's "system/time.h")

metze
2007-12-21 05:42:46 +01:00
Stefan Metzmacher
192c05556f r25600: fix stupid typo...this should fix the build on sunX
metze
2007-10-10 15:08:03 -05:00
Stefan Metzmacher
f9696109cc r25597: HPUX doesn't have INET_ADDRSTRLEN defined
metze
2007-10-10 15:08:02 -05:00