1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

10918 Commits

Author SHA1 Message Date
Jelmer Vernooij
3757ed8df0 Use the new modules stuff to load dynrpc modules. Basically this means:
- calling the initialization function in the module init_module() instead of rpc_pipe_init()
- calling smb_load_module() to do the dlopen(), dlsym() and init_module() calls

I'll merge this to 3.0, together with the smb_load_module() function.

Discussed with Anthony.
-
Rafal Szczesniak
e77c44efd9 Fix of two warnings.
pull_ucs2_talloc function takes char** pointer, not (here
explicitly casted) void** one.


Rafal
-
Tim Potter
8d166ae093 We don't use mkproto stuff for the python extensions anymore. -
Tim Potter
0659351b25 Cleanup of header files for python extensions.
- combine py_foo_proto.h and py_foo.h
 - move #include of Python.h into one place so we can get rid of that
   annoying compiler warning about HAVE_FSTAT being redefined
-
Jeremy Allison
e7c4616c45 Ensure we use getgrnam() unless BROKEN_GETGRNAM is defined. I now need
to set this for Tru64.
Jeremy.
-
Gerald Carter
9a4b7a86fd set the various DsSpooler keys that are linked to PRINTER_INFO_2 fields; CR 985 -
Martin Pool
e22465749d Remove obsolete comment. -
Martin Pool
735c99dadb Doxygen janitor. No other changes. -
Martin Pool
bfb6104521 cmd_lsa_lookup_sids: Check return code from string_to_sid; skip SIDs
which are not valid.
-
Martin Pool
5a59727278 init_dom_sid2s: Check return code from string_to_sid. Skip tokens
that are not valid SIDs.
-
Martin Pool
fe449328b2 Check return code from string_to_sid. -
Martin Pool
bb095dc28d add_initial_entry should fail if string_to_sid fails. -
Andrew Bartlett
bcbc221323 Patch from vorlon@debian.org to split out our -lacl dependency to only smbd
and vfstest.
-
Martin Pool
82414706e6 Doxygen janitor and some doc typo fixes. -
Martin Pool
fa38e7956c Doxygen janitor. No other changes. -
Andrew Bartlett
1a723bcda7 The cli_send_tconX code already determines to send \\server\share to port 139
and share to 445, so doing this only confuses the issue (sending
\\server\\server\share to 139) and makes debugging specific error codes more
difficult.

Andrew Bartlett
-
Martin Pool
24fe55ea6d Update config.guess, config.sub to the versions from the GNU autotools
2003-01-10 release.  This adds or improves detection for many host
platforms.
-
Martin Pool
90e1d8bdfa Add comment explaining the -DDEVELOPER safe_strcpy overflow hack. -
Jeremy Allison
fb3548e508 Correctly check for inet_addr fail. Patch from gregor.7@osu.edu.
Jeremy.
-
Volker Lendecke
3b905f5a16 Dummy commit, I can't get through to samba-cvs@samba.org. It can't really
remember under what mail address I have to post.

My last commit to this file made it compile again, my fingers were a bit
too fast to really type this message.

Sorry for this confusion,

Volker
-
Volker Lendecke
fcfbb3c430 cmd_srvsvc.c -
Andrew Bartlett
3588ebb35b This is a very nice way to detect pstrcpy() into a malloc()ed string, but
it really is a developer hack...

Andrew Bartlett
-
Andrew Bartlett
9be21976f7 This patch fixes one of my longest-standing pet hates with Samba :-).
When we look see if a user is in a list, and we try to 'expand' an @group, we
should lookup the user's own list of groups, rather than looking for all the
members of a group.

I'm sure this will fix some nasty performance issues, particularly on large
domains etc.  In particular, this avoids contacting winbind at all, if the
group is not a winbind group.

(This caused a deadlock on my winbind-on-PDC setup).

The groups list always includes the user's primary group, as per the
getgrouplist manpage, and my recent changes to our implementation.

Andrew Bartlett
-
Andrew Bartlett
ae9765b84d Don't leak a session_key worth of memory at the end of the NTLMSSP auth. -
Andrew Bartlett
4560594a67 Set the length back to zero when we free the data_blob. -
Andrew Bartlett
0cd4b339b7 Try to make our getgrouplist replacement better match the 'real' implemenations.
In particular, make sure we include the primary gid in the list.

Andrew Bartlett
-
Martin Pool
ada36d2fe3 Typo: /mized/mixed/ -
Martin Pool
9f9077346b Don't pstrcpy into an fstring. (Harmless in this case since it comes
from an environment variable.)
-
Martin Pool
d85a25e733 Start reworking rpcclient to use popt rather than next_token to parse
command lines.  This makes the code much simpler and also stops
trivial syntax errors from causing a crash.

Also fix support for semicolon-separated commands in -c, which is
promised by the manual but apparently never working due to an
off-by-one error.
-
Tim Potter
8e0d781995 Added SRVSVC pipe support. I've started implementing NetServerGetInfo() -
Tim Potter
651be759b3 Add KRBCLIENT_OBJ to PYTHON_OBJ list. -
Tim Potter
619af61644 Return a WERROR instead of a NTSTATUS like the rest of the srvsvc
rpc calls.
-
Andrew Bartlett
960c53bf95 If we didn't make the server_info correctly, then don't segfault trying to
set the 'guest' bit.

Andrew Bartlett
-
Andrew Bartlett
14b38c004f People were being tripped up by the fact that we havn't updated acconfig.h
as we don't need it for autoconf 2.53.  Remove it from CVS, and assert the
newer autotools in configure.in

Andrew Bartlett
-
Andrew Bartlett
ddaa42423b Add the 'session key' output of the NTLMSSP exchange to the cli struct, so
it can be used for 'net rpc join'.

Also fix a bug in our server-side NTLMSSP code - a client without any domain
trust links to us may calculate the NTLMv2 response with "" as the domain.

Andrew Bartlett
-
Richard Sharpe
5040b49867 Recover much of my changes to editreg.c. Add some const and start coding
the regedit file parser etc.
-
Gerald Carter
043b9dff22 * set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736
* never save a pointer to an automatic variable (they go away)
  implement a deep copy for SPOOLSS_NOTIFY_MSG to correct
  messages being sent that have junk for strings;
  fix in response to changes for CR 1504
-
Alexander Bokovoy
643172ac1a Third-party configuration scripts may produce undesirable additions to CFLAGS/CPPFLAGS
and LIBS/LDFALGS. In particular, they often don't check where the appropriate libraries
were installed and pass -I/usr/include and -L/usr/lib as part of CFLAGS/LDFLAGS.

While the latter isn't dangerous, passing system include directory through -I lead
to change of its status in CPP from system to user-defined in many cases.

This patch cleans up CFLAGS/CPPFLAGS from errorenous -I/usr/include and LIBS/LDFLAGS
from -L/usr/lib. This is done as two m4 macros which are called before AC_OUTPUT.
-
Andrew Bartlett
dc934412b0 Don't return NULL pointers for now.
We should look into how to deal with NULL v "" strings, and the NTLMSSP code
underneath properly at some stage.

Andrew Bartlett
-
Simo Sorce
4a3c6c62d9 fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report
-
Jelmer Vernooij
10a97c2263 Some small updates -
Alexander Bokovoy
c88a5b1aba When checking for tgetent, include libtinfo from recent Ncurses as well -
Alexander Bokovoy
ca27334ba0 Add support for krb5-config from recent MIT and Heimdal. And fallback to traditional guessing only if krb5-config was not found. -
Jelmer Vernooij
fc26d1bfd1 Add draft of universal passdb document that combines ENCRYPTION.sgml,
Samba-LDAP-HOWTO.sgml, pdb_mysql.sgml and pdb_xml.sgml
-
Jelmer Vernooij
327075d14f Remove obsolete textdocs - they have been migrated to SGML -
Jelmer Vernooij
41753997ae Fix *a lot* of syntax errors -
Andrew Bartlett
b2b66909ac Move our NTLMSSP client code into ntlmssp.c. The intention is to provide a
relitivly useful external lib from this code, and to remove the dupicate
NTLMSSP code elsewhere in samba (RPC pipes, LDAP client).

The code I've replaced this with in cliconnect.c is relitivly ugly, and
I hope to replace it with a more general SPENGO layer at some later date.

Andrew Bartlett
-
Jelmer Vernooij
ba25db83f2 Use more portable @SHLIBEXT@ instead of .so -
Jelmer Vernooij
28653989cf Remove obsolete file lib/netatalk.c - We have a VFS module now -
Jeremy Allison
81f358b632 Patch based on work by Michael Steffens <michael_steffens@hp.com> to wrap
all cm_get_XX calls and their subsequent requests in a retry loop in case
we've temporarily lost connection to the DC. Makes winbindd more reliable.
Jeremy.
-