OpenBSD CVS

CVS log for src/usr.sbin/ypldap/ypldap.c


[BACK] Up to [local] / src / usr.sbin / ypldap

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Tue May 21 05:00:48 2024 UTC (2 weeks, 4 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored)

remove prototypes with no matching function and externs with no var
partly checked by millert@

Revision 1.24 / (download) - annotate - [select for diffs], Fri Mar 31 03:38:26 2023 UTC (14 months, 1 week ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Only send the used portion of struct idm_req in imsgs from the ldapclient
process to the main process. This significantly reduces memory usage when
updating larger directories.

ok aisha@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 22 08:02:02 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.22: +4 -3 lines
Diff to previous 1.22 (colored)

remove extra newlines from log messages

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jan 27 07:21:55 2021 UTC (3 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

these programs (with common ancestry) had a -fno-common problem related
to privsep_procid.
ok mortimer

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 20 12:39:36 2017 UTC (7 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: 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, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.20: +4 -1 lines
Diff to previous 1.20 (colored)

work on making log.c similar in all daemons:

reduce the (mostly whitespace) differences so that log.c's can be
diffed easily. disclaimer change ok henning@.

ok krw@ jmatthew@

Revision 1.20 / (download) - annotate - [select for diffs], Tue Nov 29 17:15:27 2016 UTC (7 years, 6 months ago) by mestre
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Use memset(3) instead of bzero(3)

OK deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 28 22:28:36 2016 UTC (8 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.18: +3 -4 lines
Diff to previous 1.18 (colored)

When a group contains a non-existent user, make the warning
message more helpful by mentioning the group name.
Joint work with Richie at UStA dot de.
OK jmatthew@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 5 13:15:06 2015 UTC (8 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

EAGAIN handling for imsg_read. OK henning@ benno@

Revision 1.17 / (download) - annotate - [select for diffs], Sun Nov 15 01:31:57 2015 UTC (8 years, 6 months ago) by jmatthew
Branch: MAIN
Changes since 1.16: +4 -1 lines
Diff to previous 1.16 (colored)

pledge for ypldap is easy because it's purely a network program.
One process talks to yp clients, one talks to ldap servers, one does dns.

ok deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 2 10:06:06 2015 UTC (8 years, 7 months ago) by jmatthew
Branch: MAIN
Changes since 1.15: +2 -21 lines
Diff to previous 1.15 (colored)

use SOCK_NONBLOCK instead of fcntl

ok dlg@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:22 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Sun Jul 13 15:38:09 2014 UTC (9 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.13: +8 -8 lines
Diff to previous 1.13 (colored)

Since the event(s) passed to a callback can be a mask of all events
of interest and EV_WRITE is or'ed into the interesting events, it
is more correct to check both events each time. Pointed out by
Claudio.

ok henning@ claudio@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jul 13 12:07:59 2014 UTC (9 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.12: +8 -4 lines
Diff to previous 1.12 (colored)

Close connection/remove event handler when msgbuf_write() hits an
EOF.

ok jmatthew@ claudio@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Mar 15 01:44:22 2012 UTC (12 years, 2 months ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

don't leak ue_netid_line when freeing the old user tree

ok dlg@

Revision 1.11 / (download) - annotate - [select for diffs], Sat Mar 10 01:23:08 2012 UTC (12 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

ldap doesnt necessarily do referential checks on the users in a
group, so it is possible for them to list users that dont exist as
members. they should just skip such entries instead of fail horribly.

diff from jim smith
ok aschrijver@

Revision 1.10 / (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_1_BASE, OPENBSD_5_1
Changes since 1.9: +238 -94 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Thu Apr 1 18:24:04 2010 UTC (14 years, 2 months ago) by zinovik
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

fix fatal calls, that they will report function names from which they are
called, in case of failure developer will be digging for a bug in wrong place

ok krw@, pyr@

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 6 05:02:58 2009 UTC (15 years ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.7: +42 -24 lines
Diff to previous 1.7 (colored)

Sync with relayd:
Stop pushing event handling in the imsg framework.
Instead, provide a small glue layer on top of both imsg and libevent.
This finally clearly separates event handling and imsg construction.

ok pyr@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 29 11:21:42 2009 UTC (15 years, 4 months ago) by form
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.6: +7 -11 lines
Diff to previous 1.6 (colored)

No need to use RB_FIND here, RB_INSERT does that job for us.

ok aschrijver@

Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 30 16:24:16 2008 UTC (15 years, 8 months ago) by aschrijver
Branch: MAIN
Changes since 1.5: +10 -10 lines
Diff to previous 1.5 (colored)

aldap library -- Replacement for openldap used in ypldap. aldap is an semi-asynchronous client interface to connect to LDAP servers.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Sep 3 11:04:03 2008 UTC (15 years, 9 months ago) by jsg
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

; -> : in getopt optstring.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Sep 3 11:01:50 2008 UTC (15 years, 9 months ago) by jsg
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

Missing break in case statement.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 2 17:36:15 2008 UTC (15 years, 11 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

kill a bunch of dead code.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jun 26 15:13:17 2008 UTC (15 years, 11 months ago) by pyr
Branch: MAIN
Changes since 1.1: +1 -2 lines
Diff to previous 1.1 (colored)

cleanup include file. remove unneeded socket cleanup.

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

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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.