summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
Commit message (Collapse)AuthorAgeFilesLines
* Becouse of changes to the meaning of this feild over time, this doesn'tAndrew Bartlett2002-08-171-17/+0
| | | | | | | | | actually work. Also, the idea of 'loopback winbind' isn't that bad an idea anyway (potential PDC/BDC applications). Given all that, remove it... Andrew Bartlett
* Merge of netbios namecache code from APPLIANCE_HEAD.Tim Potter2002-08-161-0/+2
| | | | | | | Tridge suggested a generic caching mechanism for Samba to avoid the proliferation of little cache files hanging around limpet like in the locks directory. Someone should probably implement this at some stage.
* Add some more const :-)Andrew Bartlett2002-08-071-3/+3
| | | | | | | This also makes it a easier to see which paramaters are 'in', and which are 'out'. Andrew Bartlett
* fixed wbinfo -t for netbiosless domainsAndrew Tridgell2002-08-051-1/+7
|
* This fixes a number of ADS problems, particularly with netbioslessAndrew Tridgell2002-08-056-125/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setups. - split up the ads structure into logical pieces. This makes it much easier to keep things like the authentication realm and the server realm separate (they can be different). - allow ads callers to specify that no sasl bind should be performed (used by "net ads info" for example) - fix an error with handing ADS_ERROR_SYSTEM() when errno is 0 - completely rewrote the code for finding the LDAP server. Now try DNS methods first, and try all DNS servers returned from the SRV DNS query, sorted by closeness to our interfaces (using the same sort code as we use in replies from WINS servers). This allows us to cope with ADS DCs that are down, and ensures we don't pick one that is on the other side of the country unless absolutely necessary. - recognise dnsRecords as binary when displaying them - cope with the realm not being configured in smb.conf (work it out from the LDAP server) - look at the trustDirection when looking up trusted domains and don't include trusts that trust our domains but we don't trust theirs. - use LDAP to query the alternate (netbios) name for a realm, and make sure that both and long and short forms of the name are accepted by winbindd. Use the short form by default for listing users/groups. - rescan the list of trusted domains every 5 minutes in case new trust relationships are added while winbindd is running - include transient trust relationships (ie. C trusts B, B trusts A, so C trusts A) in winbindd. - don't do a gratuituous node status lookup when finding an ADS DC (we don't need it and it could fail) - remove unused sid_to_distinguished_name function - make sure we find the allternate name of our primary domain when operating with a netbiosless ADS DC (using LDAP to do the lookup) - fixed the rpc trusted domain enumeration to support up to approx 2000 trusted domains (the old limit was 3) - use the IP for the remote_machine (%m) macro when the client doesn't supply us with a name via a netbios session request (eg. port 445) - if the client uses SPNEGO then use the machine name from the SPNEGO auth packet for remote_machine (%m) macro - add new 'net ads workgroup' command to find the netbios workgroup name for a realm
* Winbind updates!Andrew Bartlett2002-07-317-29/+151
| | | | | | | | | | | | | | | | This updates the 'winbind' authentication module and winbind's 'PAM' (actually netlogon) code to allow smbd to cache connections to the DC. This is particulary relevent when we need mutex locks already - there is no parallelism to be gained anyway. The winbind code authenticates the user, and if successful, passes back the 'info3' struct describing the user. smbd then interprets that in exactly the same way as an 'ntdomain' logon. Also, add parinoia to winbind about null termination. Andrew Bartlett
* support netbiosless search for the DC using ADS in the winbindd AUTHAndrew Tridgell2002-07-311-58/+110
| | | | code.
* Fixed for memory leak in connection caching code when a dc isTim Potter2002-07-301-1/+13
| | | | permanently down. Found by Dan Coppock.
* Add another message rather than 'internal module error'Andrew Bartlett2002-07-241-0/+4
| | | | Andrew Bartlett
* Another smattering of static and constAndrew Bartlett2002-07-212-8/+8
|
* Renamed all the new_cli_netlogon_* functions to cli_netlogon_*Tim Potter2002-07-211-2/+2
| | | | as they're no longer new!
* Compilers do find bugs :-)Andrew Bartlett2002-07-211-2/+1
| | | | | | | This was a mixup between the enum type NSS_STATUS and a BOOL (extra test for equality). Andrew Bartlett
* Try to fix up warnings - particularly on the IRIX 64 bit compiler (which had aAndrew Bartlett2002-07-203-5/+5
| | | | | | | | distinction between uchar and char). Lots of const etc. Andrew Bartlett
* fixed a number of real bugs found by warnings on the 64 bit irix compilerAndrew Tridgell2002-07-151-4/+4
|
* after thinking about the env variable hack for avoiding group membershipAndrew Tridgell2002-07-141-14/+20
| | | | | | enumeration I realised it could be a security hole for setuid progs. This adds a proper nss function instead.
* this is a trick to work around the fact that posix does not supplyAndrew Tridgell2002-07-146-9/+53
| | | | | | | | | | a getgr*() function that lists groups without numerating all the group members. Instead of definiing a new nss method (which might cause problems) I added an environment variable WINBIND_GETGRLST that tells winbind not to fill in the group members in a gergrent() request. This can speed up group listing by a factor of 20 or more (on my test system with 50000 groups it reduces the time from an hour to 2 minutes)
* I just noticed that I never added my copyright when I messed with thisAndrew Bartlett2002-07-131-0/+1
| | | | | | previously. Fix that. Andrew Bartlett
* Usage fixes from APPLIANCE_HEAD.Tim Potter2002-07-111-1/+2
|
* Merge of init_domain_list() fix from APPLIANCE_HEAD.Tim Potter2002-07-111-3/+0
|
* this implements a completely new strategy for fetching groupAndrew Tridgell2002-07-111-33/+83
| | | | | | | | | | | | membership from an ADS server. We now use a 'member' query on the group and do a separate call to convert the resulting distinguished name to a name, rid etc. This is *much* faster for very large numbers of groups (on a quantum test system with 10000 groups it drops the time from an hour to about 35 seconds). strangely enough, this actually *increases* the amount of ldap traffic, its just that the MS LDAP server answers these queries much faster.
* Kill off codepage related stuff, now we don't use codepages any more.Andrew Bartlett2002-07-031-4/+0
| | | | Andrew Bartlett
* used findstatic.pl to make some variables static and remove some deadAndrew Tridgell2002-07-011-1/+1
| | | | code
* fixed a bug handling startup when the ads server is not contactableAndrew Tridgell2002-07-011-1/+1
|
* The next phase in the WINS rewrite!Andrew Tridgell2002-06-271-2/+0
| | | | | | | | | | | | | | | | We now cope wiith multiple WINS groups and multiple failover servers for release and refresh as well as registration. We also do the regitrations in the same fashion as W2K does, where we don't try to register the next IP in the list for a name until the WINS server has acked the previos IP. This prevents us flooding the WINS server and also seems to make for much more reliable multi-homed registration. I also changed the dead WINS server code to mark pairs of IPs dead, not individual IPs. The idea is that a WINS server might be dead from the point of view of one of our interfaces, but not another, so we need to keep talking to it on one while moving onto a failover WINS server on the other interface. This copes much better with partial LAN outages and weird routing tables.
* This commit finally gives us multiple wins server groups. We nowAndrew Tridgell2002-06-262-33/+17
| | | | | | | | | | | | | | | | | | | | | | | | accept an extended syntax for 'wins server' like this: wins server = group1:192.168.2.10 group2:192.168.3.99 group1:192.168.0.1 The tags before the IPs don't mean anything, they are just a way of grouping IPs together. If you use the old syntax (ie. no ':') then an implicit group name of '*' is used. In general I'd recommend people use interface names for the group names, but it doesn't matter much. When we register in nmbd we try to register all our IPs with each group of WINS servers. We keep trying until all of them are registered with every group, falling back to the failover WINS servers for each group as we go. When we do a WINS lookup we try each of the WINS servers for each group. If a WINS server for a group gives a negative answer then we give up on that group and move to the next group. If it times out then we move to the next failover wins server in the group. In either case, if a WINS server doesn't respond then we mark it dead for 10 minutes, to prevent lengthy waits for dead servers.
* Update cli_full_connection() to take a 'flags' paramater, and try to get aAndrew Bartlett2002-06-251-1/+1
| | | | | | few more places to use it. Andrew Bartlett
* Add a couple more DEBUG()s to winbindd.Andrew Bartlett2002-06-251-4/+9
| | | | Andrew Bartlett
* Fix from Andrew Esh for not checking return code.Jeremy Allison2002-06-201-0/+3
| | | | Jeremy.
* more debug classess activatedSimo Sorce2002-06-1814-0/+40
|
* Latest patch from metze <metze@metzemix.de> to move most of samba acrossAndrew Bartlett2002-06-133-7/+9
| | | | | | | | | | | to using SIDs instead of RIDs. The new funciton sid_peek_check_rid() takes an 'expected domain sid' argument. The idea here is to prevent mistakes where the SID is implict, but isn't the same one that we have in the struct. Andrew Bartlett
* Ignore winbindd_proto.hTim Potter2002-06-121-0/+1
|
* Remove "sids.h" as it really wasn't being used anywhere, and was exportingAndrew Bartlett2002-06-103-2/+1
| | | | | | | | | the (now static) global_sam_sid. The only place it was being used was to return global_sid_NULL to some uid->sid functions - and I'm not convinced this is correct in any case. Andrew Bartlett
* With this file being automaticly regenerated, and cleaned up with 'make clean'Andrew Bartlett2002-06-101-142/+0
| | | | | | I think it should be removed from CVS. This matches the other proto files. Andrew Bartlett
* Merge pidfile fix.Jeremy Allison2002-06-071-3/+3
| | | | Jeremy.
* Store cache entry keys that have RID values in decimal to beTim Potter2002-06-051-6/+6
| | | | consistent with other keys.
* Fix for Linux kernel bug where signal mask set within a signal handlerJeremy Allison2002-06-051-1/+15
| | | | | | is being ignored on sighandler exit. This means we have to have a small array of fd's, not a single one. Jeremy.
* Store the key for a name to sid cache entry in upper case rather thanTim Potter2002-06-041-4/+12
| | | | | | | | | whatever case the request was made in. This gets rid of duplicate cache entries. Also when doing a sid to name, prime the cache with the name to sid mapping result. We can't do the reverse as we don't know the correct case of the name to store in the cache.
* Fixed some formatting.Tim Potter2002-06-041-3/+4
|
* fixed some debug messagesAndrew Tridgell2002-06-031-2/+2
|
* The last element of the definitions of enums can't have a trailingTim Potter2002-06-021-1/+1
| | | | comma. Only initialisers can have this in ANSI C.
* merge from 2.2Gerald Carter2002-05-291-1/+1
|
* Updates to better report some NTSTATUS errors into PAM, and update to PAMAndrew Bartlett2002-05-281-0/+9
| | | | | | | | | | | to correctly allow password changes on expired passwords. (No security implications, as its just a 'will I let you talk to the server' check). pam_winbind checks the password prior to changing it, so that users don't have to make up and type their new password when they havn't even got the old one right. This also helps with stacking etc. Andrew Bartlett
* Fixed incorrect comment.Tim Potter2002-05-241-2/+2
|
* Remove the password length paramater from cli_full_connection - it reallyAndrew Bartlett2002-05-241-1/+1
| | | | | | | | didn't make any sense, and its was always just strlen(password) anyway. This fixes it to be strlen(password)+1 Andrew Bartlett
* debug classizedSimo Sorce2002-05-213-0/+9
|
* A small change to print out the error message only if we could not check theRichard Sharpe2002-05-191-4/+5
| | | | secrets ...
* As per rsharpe's request, require only a Masters in Astrophysics toAndrew Bartlett2002-05-182-16/+18
| | | | | | correctly configure winbind. (Next job: Fill in the 'error_msg' field with somthing useful)
* A few more trusted domains updates from mimir.Andrew Bartlett2002-05-171-2/+3
| | | | | | | I think we may still need to look at our server enumeration code, but other than that, its much better in the tree than out. Andrew Bartlett
* Changes to allow head to translate NMB flags ...Richard Sharpe2002-05-172-8/+8
|
* Don't store domain with username in secrets.tdbTim Potter2002-05-131-1/+1
|