1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00
Commit Graph

1060 Commits

Author SHA1 Message Date
Jelmer Vernooij
f0982e1102 - Change ADS CHOSTPASS -> ADS CHANGETRUSTPW
- Add general CHANGETRUSTPW function that calls ADS CHANGETRUSTPW or RPC CHANGETRUSTPW
(Merged from HEAD)
-
Jelmer Vernooij
b3328dab2f Add some more functions for the modules (backport from HEAD):
- init_modules()
 - smb_probe_module()
-
Tim Potter
dfa9412da5 Merge: remove unused variables. -
Tim Potter
6a5b88c95b Merge of Jelmer's usage updates for net. -
Tim Potter
ab64a0b1e7 Merge of bugfix for cli_lsa_query_info_policy() usage. -
Tim Potter
30ac37efec Merge rewrite of smbcontrol. -
Tim Potter
6a54d9a0a7 Merge:
- Jelmer's latest popt changes
-
Tim Potter
98e84b3e83 Merge Jelmer's popt updates from HEAD. -
cvs2svn Import User
381649916e This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. -
Gerald Carter
74fab8f0d2 smbcquota patch from metze -
Volker Lendecke
eaef0d8aef This is the netlogon schannel client code. Try a
rpcclient -S pdc -U% -c "samlogon user password"

and it should work with the schannel. Needs testing against platforms
different from NT4SP6.

Volker
-
Volker Lendecke
ecd0ee4d24 This is the netlogon schannel client code. Try a
rpcclient -S pdc -U% -c "samlogon user password"

and it should work with the schannel. Needs testing platforms
different from NT4SP6.

Volker
-
Jelmer Vernooij
49926d706f Use fprintf(f, ...) instead of plain printf() - patch by Ronan Waide -
Jelmer Vernooij
890cc17c41 Use fprintf(f, ...) instead of plain printf() - patch by Ronan Waide -
Tim Potter
269f838dee Rewrite of smbcontrol - it was a bit of a mess. It should now be much
nicer to use and more hackable.

 - converted to popt

 - text message destinations (except for broadcast smbd) are resolved
   using files in piddir so the string 'winbindd' is now a destination

 - added --timeout option to specify timeout value

 - deleted complicated handling of debug args as separate command line
   arguments: use shell quoting instead

 - deleted interactive mode as punishment for using strtok() (-:

 - much improved command line argument checking

Some of this stuff was broken before I started (print notify,
profiling) but the basics still work (ping, pool-usage, debug,
debuglevel).
-
Andrew Bartlett
d711a1c95c Merge the ntlm_auth updates (refactor, add --diagnostics) into Samba 3.0
Andrew Bartlett
-
Tim Potter
af6ecafcbb Remove duplicate "tallocdump" message from tdb messaging system. The
same functionality exists as "pool-usage".

Move initialisation of this and dmalloc messages inside message_init().
-
Richard Sharpe
41b320ffc5 Some more good stuff from coolo. -
Tim Potter
18685d137e Fix compiler warning - cli_lsa_query_info_policy actually returns the
domain name.  We were passing in an already initialised string which was
causing the warning.
-
Jelmer Vernooij
38d03f4f1a Give warning if 'drvupgrade' doesn't get an argument -
Jelmer Vernooij
55d9ef08a7 Give warning if 'drvupgrade' doesn't get a parameter -
Andrew Bartlett
e73b01204a Print out the 'freindly' error message from winbind. Also print useful
information into it re the privilaged pipe.

Also clean up some bugs in winbindd_pam.c

Andrew Bartlett
-
Jelmer Vernooij
5c0e4b4dc6 Fix searching master ip by bcast when old master has gone away (based on patch by Stephan Kulow <coolo@kde.org>) -
Andrew Bartlett
ce197eae8d error_string, not error_message... -
Andrew Bartlett
fa47e44b9c Clean up ntlm_auth a bit, and add a --diagnositics swtich, to check that
the returned session key is the one that we expect to get for that each
of login.

Andrew Bartlett
-
Jelmer Vernooij
861b2a464f Remove useless popt options -
Volker Lendecke
702d368a9a Waider's cosmetic change to print out the database type when
downloading stuff.

Volker
-
Volker Lendecke
b86ea50fa6 Waider's cosmetic change to print out the database type when
downloading stuff.

Volker
-
Volker Lendecke
e0cb325b99 This sets the domain for the user in vampire. Otherwise
we end up with an empty domain field, which a workstation
does not really like in sam_logon..

Volker
-
Volker Lendecke
5a3f89d3c1 This sets the domain for the user in vampire. Otherwise
we end up with an empty domain field, which a workstation
does not really like in sam_logon..

Volker
-
Jelmer Vernooij
794d3ed036 - Point users at the HOWTO Collection instead of 'README' in modules/mysql.c
- Make passdb work with absolute paths (passdb backend = /path/to/smbpasswd.so works now). vfs, rpc and charset will follow
-
Andrew Tridgell
0c12a206bb fixed the -B option as well -
Andrew Tridgell
1d3c7e7fb6 fixed the -U option in nmblookup
please remember to *test* your changes before committing them. This is
especially the case when you receive patches from outside the team -
before you commit you must make sure that the patch actually works.
-
Jelmer Vernooij
6ab41e50fd Don't use 'opt' -
Jelmer Vernooij
094eed2c62 Make variables static to satisfy exotic compilers -
Jelmer Vernooij
d5f9b0275c Revoke some of the popt patch from metze I applied earlier today. It added
some double options and broke some parameters.
-
Jelmer Vernooij
2ddfed298d Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changes -
Andrew Bartlett
ec071ca3dc (merge from HEAD)
NTLM Authentication:

- Add a 'privileged' mode to Winbindd.  This is achieved by means of a directory
  under lockdir, that the admin can change the group access for.

- This mode is now required to access with 'CRAP' authentication feature.
- This *will* break the current SQUID helper, so I've fixed up our ntlm_auth
  replacement:
 - Update our NTLMSSP code to cope with 'datagram' mode, where we don't get a
   challenge.
 - Use this to make our ntlm_auth utility suitable for use in current Squid 2.5
   servers.
 - Tested - works for Win2k clients, but not Win9X at present.  NTLMSSP updates
   are needed.
 - Now uses fgets(), not x_fgets() to cope with Squid environment (I think
   somthing to do with non-blocking stdin).

- Add much more robust connection code to wb_common.c - it will not connect to
  a server of a different protocol version, and it will automatically try and
  reconnect to the 'privileged' pipe if possible.
  - This could help with 'privileged' idmap operations etc in future.

- Add a generic HEX encode routine to util_str.c,
- fix a small line of dodgy C in StrnCpy_fn()

- Correctly pull our 'session key' out of the info3 from th the DC.  This is
  used in both the auth code, and in for export over the winbind pipe to
  ntlm_auth.

- Given the user's challenge/response and access to the privileged pipe,
  allow external access to the 'session key'.  To be used for MSCHAPv2
  integration.

Andrew Bartlett
-
Volker Lendecke
339c149068 Implement abartlet's suggestion to add attribs to ldap if they
are 'SET' when adding the account.

I really don't like passing flags down to inner routines and
complicated if/else conditions, but this time he might be right. ;-)

Volker
-
Volker Lendecke
80d2578108 Implement abartlet's suggestion to add attribs to ldap if they
are 'SET' when adding the account.

I really don't like passing flags down to inner routines and
complicated if/else conditions, but this time he might be right. ;-)

Volker
-
Jelmer Vernooij
691c63ad6b Convert to popt. -
Andrew Bartlett
dcdc75ebd8 NTLM Authentication:
- Add a 'privileged' mode to Winbindd.  This is achieved by means of a directory
  under lockdir, that the admin can change the group access for.

- This mode is now required to access with 'CRAP' authentication feature.
- This *will* break the current SQUID helper, so I've fixed up our ntlm_auth
  replacement:
 - Update our NTLMSSP code to cope with 'datagram' mode, where we don't get a
   challenge.
 - Use this to make our ntlm_auth utility suitable for use in current Squid 2.5
   servers.
 - Tested - works for Win2k clients, but not Win9X at present.  NTLMSSP updates
   are needed.
 - Now uses fgets(), not x_fgets() to cope with Squid environment (I think
   somthing to do with non-blocking stdin).

- Add much more robust connection code to wb_common.c - it will not connect to
  a server of a different protocol version, and it will automatically try and
  reconnect to the 'privileged' pipe if possible.
  - This could help with 'privileged' idmap operations etc in future.

- Add a generic HEX encode routine to util_str.c,
- fix a small line of dodgy C in StrnCpy_fn()

- Correctly pull our 'session key' out of the info3 from th the DC.  This is
  used in both the auth code, and in for export over the winbind pipe to
  ntlm_auth.

- Given the user's challenge/response and access to the privileged pipe,
  allow external access to the 'session key'.  To be used for MSCHAPv2
  integration.

Andrew Bartlett
-
Jelmer Vernooij
a1576694a6 Use popt_common for -s, -d and -V -
Volker Lendecke
09a3db0ffc This does two things:
* pdbedit -i -e sets all SAM_ACCOUNT elements
  to CHANGED to satisfy the new pdb_ldap.c handling

* pdbedit -g transfers group mappings. I made this
  separate from the user database, as current installations
  have to live with a split backend.

  So, if you are running 3_0 alphas with LDAP as a backend
  and upgrade to the next 3_0 alpha, you should call

  pdbedit -i tdbsam -e ldapsam -g

  to transfer your group mapping database to LDAP.

  You certainly have to have all your groups as posixGroup
  objects in LDAP and adapt the LDAP schema before this
  call.

Volker
-
Volker Lendecke
6d3faeaef6 This does two things:
* pdbedit -i -e sets all SAM_ACCOUNT elements
  to CHANGED to satisfy the new pdb_ldap.c handling

* pdbedit -g transfers group mappings. I made this
  separate from the user database, as current installations
  have to live with a split backend.

  So, if you are running 3_0 alphas with LDAP as a backend
  and upgrade to the next 3_0 alpha, you should call

  pdbedit -i tdbsam -e ldapsam -g

  to transfer your group mapping database to LDAP.

  You certainly have to have all your groups as posixGroup
  objects in LDAP and adapt the LDAP schema before this
  call.

Volker
-
Andrew Bartlett
c7b8405bde Merge of patch by waider to our samsync code.
(Decode all database names, and set only changes, not all info from the samsync
record).

Andrew Bartlett
-
Andrew Bartlett
6509397f91 Patch from waider to update our samsync (net rpc vampire) code:
- Decode all the database names, even if we don't decode their contents
 - Update the 'set' code to match rpc_server/srv_samr_nt.c in only recording
   the difference between the old and new.

Andrew Bartlett
-
Jelmer Vernooij
b46581ef15 We don't need optarg when we have popt -
Jelmer Vernooij
5f12b246b0 Convert to popt. -
Jelmer Vernooij
e7ed8bfc24 Fix typo in comment -