1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

11992 Commits

Author SHA1 Message Date
Jeremy Allison
ef1782121b Fix DOS del command with widelinks = False.
Jeremy.
-
Jeremy Allison
7787815da4 Add defines for platforms that need them.
Jeremy.
-
Jeremy Allison
b2ef052ada Fix extra NULL arg added during app-head merge.
Jeremy.
-
John Terpstra
14499e6455 A fixed type TRUE -> True, reported by Paul Green. -
Volker Lendecke
e52a2d5d49 Must have been somewhere else last sunday...
Apply metzes patch (hopefully) correctly this time

Volker
-
Gerald Carter
4dd81caeff win9x was suffered a case of the blues during a domain logon.
For some reason, explicitly setting the service type during the
tcon&X fixes this.
-
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
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
99da1119a7 The group mapping functions are not called
directly anymore, but instead through the passdb
interface. So we can make them static.

Volker
-
Volker Lendecke
53b5704ff2 Merge from HEAD:
This adds 'ldap delete dn' as the recommended parameter
for the 'ldap del only sam attr' functionality. So
we are compatiple to the current SuSE patches as well
as to TNG... ;-)

Volker
-
Volker Lendecke
7ae9c2500e Metzes change:
> Hi Volker,
>
> if 'displayName' is not available we should fallback to 'cn' for map->nt_name
> 'cn' is used as unix group name by nss_ldap.
>
> and if nt_name is not available we should fail (so does this patch)

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
8315b9c311 (merge from HEAD) Valgrind found some memory leaks! -
Jelmer Vernooij
70634d248e Merge from HEAD - Detect missing -lroken properly on machines without krb5-config -
Volker Lendecke
bc59912aa1 Never touch complicated if/else/elsif structures :-)
This repairs domain join with fully existing wks-account which I broke
with my last patch...

Volker
-
Volker Lendecke
a75015c9ce This changes the way we do LDAP updates. We don't use LDAP_MOD_MODIFY
anymore, but instead look at what is currently stored in the
database. Then we explicitly delete the existing attribute and add the
new value if it is not NULL or "". This way we can handle appearing
and disappearing attributes quite nicely.

This currently breaks pdbedit -o, as this does not set the CHANGED
flag on the SAM_ACCOUNT.

Jelmer suggested that we set all the fields on CHANGED in
context_add_sam_account. This sounds not too unreasonable.

Volker
-
Andrew Bartlett
c91e76bddb (merge from HEAD)
Small clenaup patches:
 - safe_string.h - don't assume that __FUNCTION__ is available
 - process.c - use new workaround from safe_string.h for the same
 - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc()
 - gencache.c - Keep valgrind quiet by always null terminating.
 - clistr.c - Add copyright
 - srvstr.h - move srvstr_push into a .c file again, as a real function.
 - srvstr.c - revive, with 'safe' checked srvstr_push
 - loadparm.c - set a default for the display charset.

 - connection.c - use safe_strcpy()
Andrew Bartlett
-
Andrew Bartlett
5e20868fad Fix compile on IA64 by noting that this should be the integer, not a pointer
to the integer for SIVAL().
-
Andrew Bartlett
f16a70a405 This caused problems on the build farm. -
Andrew Bartlett
6bf04c41ed Merge fixes to libsmbclient (fstring/pstring) from HEAD.
Andrew Bartlett
-
Andrew Bartlett
4bec53c8c8 Thanks to volker, merge passdb changes from HEAD:
- pdb_guest (including change defaults)
 - 'default' passdb actions (instead of 'not implemented' stubs in each module)

 - net_rpc_samsync no longer assumes pdb_unix

Andrew Bartlett
-
Andrew Bartlett
dd6516e2e8 Merge from HEAD - patch from Jianliang Lu <j.lu@tiesse.com> to set the
'minimum password age' during a password SET.

Andrew Bartlett
-
Jeremy Allison
331e621b58 Merge of new appliance-head scalable printing fixes.
Jeremy.
-
Andrew Bartlett
536e24ee5b (merge from HEAD)
Give volker a hand, and let domain joins with existing user accounts work
a bit better.

This just sets the minimum possible attributes - if we are 'upgrading' an
LDAP based user account, the attributes will be there anyway.  This matches
NT pretty well to.

This also fixes some use of unitialised values in the desired_access checking.
(found by valgrind).

Andrew Bartlett
-
Volker Lendecke
d59a7bea6b Merge from HEAD -
Jelmer Vernooij
5310447ec6 Patch from Samuel Thibault to convert messages from dos to unix charset
when sending(and vice versa when receiving).
-
Jim McDonough
2e3710f672 use pstrcpy_base() -
Volker Lendecke
62d5a78b02 Merge from HEAD -
Jelmer Vernooij
eccb699811 Make swat use popt -
Tim Potter
0308a0a112 Merge of compiler warning fixups. -
Tim Potter
68b4052281 Merge of removal of py_samba.c -
Tim Potter
f0ab1b6147 Merge new .cvsignore files. -
Jeremy Allison
bf795b684e lib/messages.c: Check return from chainlock before modifying message queue.
Apply the job returned limit across all requests for job queues.
Jeremy.
-
Herb Lewis
55681422e9 void function cannot return a value (besides the function called was
a void)
-
Jim McDonough
5078436d83 use strnlen to prevent coredumps -
Jim McDonough
c5876f9f07 replace pstrcpy -
cvs2svn Import User
6f94672d3d This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. -
Jelmer Vernooij
af7bfee0c6 Put in the new modules system. It's now used by passdb and rpc. I will
put a doc about it in dev-doc later today.
-
Volker Lendecke
f420320608 Merge from HEAD.
Volker
-
Volker Lendecke
5eaf9195ee Add paramter 'ldap del only sam attr'.
This patch is heavily based on a patch by SuSE. Thanks
to Guenther Deschner <gd@suse.de> for providing it.

Volker
-
Volker Lendecke
52250e42a9 Fix typo.
Thanks to Guenther Deschner <gd@suse.de>

Volker
-
Volker Lendecke
70bf31e1b0 Fix typo.
Thanks to Guenther Deschner <gd@suse.de>

Volker
-
Jelmer Vernooij
52c2b2418d Update alpha information -
Jelmer Vernooij
65dbd07b30 Update alpha information -
Jelmer Vernooij
3247b6be7a Update to current situation - should we add SAM/GUMS/idmap? -
Jelmer Vernooij
0038a31819 Update to current situation - there's nothing about SAM/GUMS/IDMAP in here
currently, should there be?
-
Jelmer Vernooij
051b33e98f Fix some comment typos -
Jelmer Vernooij
41ea416adb Fix some comment typos -
Jelmer Vernooij
a405788540 Regenerate -