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

168 Commits

Author SHA1 Message Date
Jelmer Vernooij
1ce32673d9 r24712: No longer expose the 'BOOL' data type in any interfaces. 2007-10-10 15:02:54 -05:00
Kai Blin
e1b93be1e1 r24577: Implement basic getpwent.
This one still cheats and only returns one winbindd_pw structure per call.
Also, doesn't get a new libnet_UserList yet.
2007-10-10 15:02:19 -05:00
Kai Blin
ef93a7991d r24576: Implement endpwent 2007-10-10 15:02:19 -05:00
Kai Blin
9bbbedac99 r24575: Implement setpwent 2007-10-10 15:02:18 -05:00
Kai Blin
ebdd03ee9e r24574: Fix a warning in wb_samba3_cmd.c 2007-10-10 15:02:18 -05:00
Stefan Metzmacher
84651aee81 r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
184a7cfc36 r24556: forgot to commit the winbind/ subdir...sorry
metze
2007-10-10 15:02:14 -05:00
Kai Blin
0454edc958 r24486: Bump another DEBUG to level 5 2007-10-10 15:01:58 -05:00
Kai Blin
9fbc8aa15f r24483: Implement backend for wbinfo -u (list users) 2007-10-10 15:01:57 -05:00
Kai Blin
6e6eac551a r24480: Bump another DEBUG down to level 5 2007-10-10 15:01:56 -05:00
Kai Blin
ef9bc55a6b r24397: Bump debug level of sid2(u|g)id calls to 5. 2007-10-10 15:01:50 -05:00
Kai Blin
abf631822d r24396: Fix a typo.
Thanks to metze (metze@samba.org) for catching this one.
2007-10-10 15:01:50 -05:00
Kai Blin
754b9ff696 r24395: Add check if talloc_strdup worked. 2007-10-10 15:01:49 -05:00
Kai Blin
c81b0980ca r24376: Missed this file from the checkin, sorry. 2007-10-10 15:01:49 -05:00
Kai Blin
760973856f r24375: Implement backend for wbinfo --uid-infp (getpwuid) 2007-10-10 15:01:48 -05:00
Kai Blin
e928e56219 r24373: Implement backend for wbinfo -G (gid2sid) 2007-10-10 15:01:47 -05:00
Kai Blin
a18cf553cf r24372: Implement backend for wbinfo -U 2007-10-10 15:01:47 -05:00
Kai Blin
a8893b3078 r24371: Actually add the glue to make wbinfo -S and wbinfo -Y work 2007-10-10 15:01:46 -05:00
Kai Blin
3b8d8fb2c1 r24370: Implement wbinfo -i backend (getpwnam) 2007-10-10 15:01:46 -05:00
Kai Blin
4305fab4a2 r24369: Don't use goto in wb_name2domain, fix wb_samba3_split_names call.
Missed this one on my previous name2domain cleanup patch.
2007-10-10 15:01:45 -05:00
Kai Blin
599416ca31 r24366: Implemet backend for wbinfo -Y, sid2gid 2007-10-10 15:01:45 -05:00
Kai Blin
682e7124fb r24365: Implemet backend for wbinfo -S, sid2uid 2007-10-10 15:01:44 -05:00
Kai Blin
95783210d2 r24364: Remove sync call from name2domain, bump debug level to 5 2007-10-10 15:01:44 -05:00
Kai Blin
6b92b816fc r24157: Merge from kai/samba4-gsoc.git;h=728deba680f8cf85cab168a6278a2cf657f65fdb
Make WBSRV_SAMBA3_SET_STRING use safe_strcpy instead of strncpy.
2007-10-10 15:01:28 -05:00
Andrew Bartlett
078671d501 r24127: Set the Domain SID into the libnet context, and have libnet_UserInfo
return full SIDs for the user SID and primary group sid.

This should help kai with his getpwnam work in winbind.

Andrew Bartlett
2007-10-10 15:01:27 -05:00
Andrew Bartlett
44c193272b r24112: Complete initialistion of the libnet_ctx when setting up the domain.
We need to set the access_mask and the domain name, or else libnet
will try to do this itself.

This seems to fix the issues Kai was having.

Andrew Bartlett
2007-10-10 15:01:27 -05:00
Andrew Bartlett
ec69f41d09 r24111: Untested code is broken code, untested code is broken code...
Apologies for my previous commit, which should never have been
commited untested.

Andrew Bartlett
2007-10-10 15:01:26 -05:00
Andrew Bartlett
0908d8232e r24110: I hate seeing callers manually filling in the composite context. Use
the helper functions instead (and in kai's new code, which just copied
the previous bad practice).

Andrew Bartlett
2007-10-10 15:01:25 -05:00
Kai Blin
a6a45ab970 r24109: Add a wb_name2domain call 2007-10-10 15:01:25 -05:00
Kai Blin
75e41da039 r24108: Split out samba3_parse_domuser to a seperate file and rename, so it can be
used for a name2domain call.
2007-10-10 15:01:25 -05:00
Andrew Bartlett
bad2dc14d7 r23995: Work to allow mimir's libnet code to be called from winbind.
We now setup a libnet_ctx for each domain.  We should then be able to
replace/merge some more of the winbind code with libnet calls,
referencing domain->libnet_ctx.

Andrew Bartlett
2007-10-10 15:01:16 -05:00
Andrew Bartlett
365778a993 r23890: Allow wbinfo -a to work against Samba4's winbind.
Add a test for wbinfo -a to test_member.sh

Reimplement the server-side 'pam_auth' and 'pam_auth_crap' calls to
use the same SamLogon code as auth_winbind uses.

In my previous code, we did not bind to the LSA and SAMR pipes, before
attempting operations.  We now do this (how we passed any tests before
is beyond me).

This required some rework, particularly to make it easier to setup
secondary connections.  The new rpc_secondary_auth_connection()
function also performs the bind.

The dcerpc_connect.c file was getting to big, so things have been
merged into dcerpc_secondary.c.

Andrew Bartlett
2007-10-10 15:01:08 -05:00
Andrew Bartlett
a1b6c9ecb9 r23880: Don't crash when we run wbinfo -a against our own winbind when we are a DC.
Next step is to make it work...

Andrew Bartlett
2007-10-10 15:01:07 -05:00
Andrew Bartlett
dc27a7e41c r23810: Make things static, and remove unsued code.
This includes some of the original ildap ldap client API.  ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.

Andrew Bartlett
2007-10-10 14:59:21 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
57dfc76743 r23653: add dummy implementation for all nss calls to let nsstest
pass against a samba4 winbind

metze
2007-10-10 14:53:30 -05:00
Kai Blin
553b7e146f r23311: Updating the samba4 winbind protocol to version 18.
nsswitch/winbindd_nss.h is just copied from SAMBA_3_0.
nsswitch/winbind_nss_config.h is copied from SAMBA_3_0, too, but I had to
drop some of the defines to make things build again.

Kai
2007-10-10 14:53:10 -05:00
Andrew Bartlett
6ecb3cb0b3 r23149: Fix up the trusted domain lookup code to use the new structures.
Andrew Bartlett
2007-10-10 14:52:57 -05:00
Stefan Metzmacher
a4df092c80 r23146: fix the build (temporary)
abartlet: please fix this correct!

metze
2007-10-10 14:52:57 -05:00
Andrew Bartlett
218b279a46 r23141: Use the finddcs() library call rather than a winbind-specific version.
(I created finddcs() from the winbind code a while back, so this
finishes that work)

Andrew Bartlett
2007-10-10 14:52:56 -05:00
Andrew Bartlett
86654056b2 r23133: I felt pity on Kai, as he starts work on winbind in Samba4, so I
decided to clean it up a little.

We now use SPNEGO for authentication if possible, and common routines
shared with the rest of the librpc codebase.  Rather than make a
connection to IPC$, then connect the pipes to it, we instead have the
lsa and samr pipes as 'secondary connections'.

Andrew Bartlett
2007-10-10 14:52:53 -05:00
Stefan Metzmacher
58551f2f28 r22944: fix bug #4618:
rename private -> private_data

metze
2007-10-10 14:52:30 -05:00
Stefan Metzmacher
b54584dfab r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
2007-10-10 14:52:09 -05:00
Andrew Bartlett
e37064e356 r22612: Fix more cases where we have uninitialised values in the
composite_context, because we don't use the creation function.

Andrew Bartlett
2007-10-10 14:51:52 -05:00
Andrew Bartlett
bd26e4ffaf r22582: Cleanups towards making winbind work again. We still have a long way to go, as this has bitrotted over the past months.
This change in particular catches winbind up with the next
composite_create() function.

We also needed to remove an unused flags field, and fill in the lm
response.

Andrew Bartlett
2007-10-10 14:51:47 -05:00
Stefan Metzmacher
c3cc03ffb2 r22403: this dependencies should be private
metze
2007-10-10 14:51:14 -05:00
Jelmer Vernooij
7f451cbb8d r21541: Export mgmt, samr and atsvc for use in samba-gtk. 2007-10-10 14:48:55 -05:00
Andrew Tridgell
d8875c286d r21535: - fixed a crash in the RAW-ACLS test. When a dcerpc_pipe is created
using the pattern in the clilsa code, it didn't fill in the p->binding
structure. This affects nearly all users of dcerpc_pipe_open_smb(), so
the simplest fix is to ensure that dcerpc_pipe_open_smb() initialises
the binding if its not already there.

- re-enable the RAW-ACLS test
2007-10-10 14:48:54 -05:00
Andrew Tridgell
2365abaa99 r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
2007-10-10 14:37:23 -05:00
Andrew Bartlett
2b569c42e0 r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
2007-10-10 14:25:00 -05:00