Up to [local] / src / usr.sbin / ypldap
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.22 / (download) - annotate - [select for diffs], Tue Jul 18 13:06:33 2023 UTC (10 months, 2 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
HEAD
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)
Do not duplicate prototypes of log.h in ypldap.h (without the extra __format__ attribute on top). Also properly ignore SIGHUP in the child processes. OK jmatthew@
Revision 1.21 / (download) - annotate - [select for diffs], Fri Aug 19 03:50:32 2022 UTC (21 months, 2 weeks ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2
Changes since 1.20: +121 -14 lines
Diff to previous 1.20 (colored)
Add local bind mode, where ypldap manages the YP binding file itself rather than relying on ypbind to do it, which also means you don't need portmap running. In this mode, ypldap binds its rpc sockets to loopback, so YP services are only available to the host it's running on. The previous behaviour, now called portmap bind mode, is still the default. encouragement from deraadt@ and dlg@
Revision 1.20 / (download) - annotate - [select for diffs], Sat Feb 5 22:59:58 2022 UTC (2 years, 3 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE,
OPENBSD_7_1
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)
ypldap: fix -Wunused-but-set-variable warnings * wrlen has been write-only since the code was imported * removing "dns_pid" mirrors ntpd/ntp.c 1.122 * ifdef out unfinished code in yp_check() ok millert@ deraadt@
Revision 1.19 / (download) - annotate - [select for diffs], Thu Dec 7 05:21:57 2017 UTC (6 years, 5 months ago) by zhuk
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.18: +7 -32 lines
Diff to previous 1.18 (colored)
Now that we have RB_NFIND, the canacar's trick with RB_INSERT+RB_NEXT is not needed anymore. okay jmatthew@
Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 29 17:15:27 2016 UTC (7 years, 6 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.17: +8 -8 lines
Diff to previous 1.17 (colored)
Use memset(3) instead of bzero(3) OK deraadt@
Revision 1.17 / (download) - annotate - [select for diffs], Sun Jan 24 08:33:27 2016 UTC (8 years, 4 months ago) by matthieu
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)
Set argument encode / result decode callbacks for 'all'. listing a map is still not implemented though. ok jmatthew@
Revision 1.16 / (download) - annotate - [select for diffs], Sun Jan 24 08:30:38 2016 UTC (8 years, 4 months ago) by matthieu
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)
Set argument encode / result decode call backs for 'maplist'. ok jmatthew@
Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 24 08:28:12 2016 UTC (8 years, 4 months ago) by matthieu
Branch: MAIN
Changes since 1.14: +10 -4 lines
Diff to previous 1.14 (colored)
Implement the 'master' request. ok jmatthew@
Revision 1.14 / (download) - annotate - [select for diffs], Wed Feb 11 01:26:00 2015 UTC (9 years, 3 months ago) by pelikan
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)
YPPROC_XFR will trigger a crash, even if using it doesn't make sense. ok deraadt miod
Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:22 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 1 12:00:34 2013 UTC (10 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.11: +2 -6 lines
Diff to previous 1.11 (colored)
avoid a fd_set overflow by calling a different rpc svc function ok jmatthew millert
Revision 1.11 / (download) - annotate - [select for diffs], Sun Aug 28 11:53:16 2011 UTC (12 years, 9 months ago) by aschrijver
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1
Changes since 1.10: +54 -10 lines
Diff to previous 1.10 (colored)
Add support for the netid.byname YP map. This map is used by getgrouplist(3), which is used by (amongst other things) initgroups(3) to set the supplemantary groups on login. OK pyr@
Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 13 06:09:35 2011 UTC (13 years, 4 months ago) by martinh
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)
Remove double 'to' in comment, ok pyr@
Revision 1.9 / (download) - annotate - [select for diffs], Thu Jan 13 06:07:42 2011 UTC (13 years, 4 months ago) by martinh
Branch: MAIN
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)
Log match requests at debug level. ok pyr@
Revision 1.8 / (download) - annotate - [select for diffs], Thu Jan 13 06:05:18 2011 UTC (13 years, 4 months ago) by martinh
Branch: MAIN
Changes since 1.7: +9 -15 lines
Diff to previous 1.7 (colored)
Extract common preparation of key in ypmatch handling, and check the argument length. ok pyr@
Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 20 05:12:38 2010 UTC (13 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)
clean up cases of ;;
Revision 1.6 / (download) - annotate - [select for diffs], Tue Aug 3 08:24:23 2010 UTC (13 years, 10 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)
Fix a leak in ypldap. Found (and correct diff) from plalonde (at) overnet.qc.ca Prompted by deraadt@
Revision 1.5 / (download) - annotate - [select for diffs], Thu May 6 11:55:01 2010 UTC (14 years, 1 month ago) by ajacoutot
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)
Use YPMAXRECORD instead of _PW_NAME_LEN here too. ok robert@ pyr@
Revision 1.4 / (download) - annotate - [select for diffs], Sat Oct 10 23:51:56 2009 UTC (14 years, 7 months ago) by robert
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)
The YP protocol permits any string to be at least as long as YPMAXRECORD, so use that instead of _PW_NAME_LEN. with help from deraadt@
Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 23 19:37:38 2009 UTC (14 years, 10 months ago) by blambert
Branch: MAIN
Changes since 1.2: +3 -5 lines
Diff to previous 1.2 (colored)
Silence some lint warnings about an unreachable return by consolidating actual returns (which were returning the same value anyway). ok pyr@
Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 2 07:40:50 2009 UTC (15 years ago) by bernd
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)
Also match on 'master.passwd.byuid'. Fixes a problem with lookup by uid. ok pyr@
Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 26 15:10:01 2008 UTC (15 years, 11 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4
ypldap -- Intended to be a drop-in replacement for ypserv, gluing in a LDAP directory and thus providing support for users and groups stored in LDAP for the get{pw,gr}ent family of functions. As of now it relies on external LDAP libraries, choose the one of your liking though openldap would do fine. Not linked to the builds until some things are sorted out, having our own LDAP client code for instance, better support for group membership lookup as well. Remember to sync with the latest master.passwd and group files as well to have the _ypldap user available, which is needed. ``just get it in'' deraadt@