Re: EVFILT_TIMER add support for different timer precisions NOTE_{,U,N,M}SECONDS

2023-08-04 Thread aisha
On 22/09/10 01:53PM, Visa Hankala wrote: > On Wed, Aug 31, 2022 at 04:48:37PM -0400, aisha wrote: > > I've added a patch which adds support for NOTE_{,U,M,N}SECONDS for > > EVFILT_TIMER in the kqueue interface. > > It sort of makes sense to add an option to specify timeouts

Re: add extract example to tar(1) man page

2023-08-03 Thread aisha
On 23/08/03 04:26PM, Jason McIntyre wrote: > On Thu, Aug 03, 2023 at 11:05:16AM -0400, aisha wrote: > > On 23/08/03 10:51AM, aisha wrote: > > > On 23/08/03 09:45AM, Stuart Henderson wrote: > > > > On 2023/08/03 07:23, Jason McIntyre wrote: > > > > > On

Re: add extract example to tar(1) man page

2023-08-03 Thread aisha
On 23/08/03 10:51AM, aisha wrote: > On 23/08/03 09:45AM, Stuart Henderson wrote: > > On 2023/08/03 07:23, Jason McIntyre wrote: > > > On Wed, Aug 02, 2023 at 05:52:02PM -0400, aisha wrote: > > > > Hi, > > > > Someone - https://www.youtube.com/watch?v=NQ5

Re: add extract example to tar(1) man page

2023-08-03 Thread aisha
On 23/08/03 09:45AM, Stuart Henderson wrote: > On 2023/08/03 07:23, Jason McIntyre wrote: > > On Wed, Aug 02, 2023 at 05:52:02PM -0400, aisha wrote: > > > Hi, > > > Someone - https://www.youtube.com/watch?v=NQ5uD5x8vzg - mentioned that > > > our man pag

add extract example to tar(1) man page

2023-08-02 Thread aisha
Hi, Someone - https://www.youtube.com/watch?v=NQ5uD5x8vzg - mentioned that our man page for tar(1) doesn't have an extract example, so I thought it would be good to add a simple one which highlights a common use case. OK? Index: tar.1

fix markup in glob(7)

2023-05-29 Thread aisha
. OK? Cheers, Aisha diff --git a/share/man/man7/glob.7 b/share/man/man7/glob.7 index 037cb52e438..443ef3c7b6f 100644 --- a/share/man/man7/glob.7 +++ b/share/man/man7/glob.7 @@ -85,9 +85,9 @@ and stands for the list of all characters belonging to that class. Supported character classes: .Bl

add table-procexec to smtpd

2023-02-09 Thread aisha
). Currently it is not replacing anything and is just available as an extra. I have a WIP perl-ldap table which can talk this line protocol and its on github right now (quite old) - https://github.com/bsd-ac/table-ldap_perl OK to import? Cheers, Aisha diff --git a/usr.sbin/smtpd/smtpctl/Makefile b

remove reference to auth_getchallenge

2023-02-05 Thread aisha
The auth_getchallenge function doesn't seem to exist in the code base. OK to remove this reference? diff --git a/lib/libc/gen/auth_subr.3 b/lib/libc/gen/auth_subr.3 index c7bd965f944..24ea850eb9e 100644 --- a/lib/libc/gen/auth_subr.3 +++ b/lib/libc/gen/auth_subr.3 @@ -328,10 +328,6 @@ function.

Re: table-procexec for opensmtpd (another try)

2021-10-15 Thread aisha
A very small change with fixing an off by one copy to the return value. It was also copying the '\n' character by mistake. diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 832f4f2aec9..ff7b9a9a340 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -2543,13

table-procexec for opensmtpd (another try)

2021-10-13 Thread aisha
e so. I am not the most proficient C coder... Cheers, Aisha diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 832f4f2aec9..ff7b9a9a340 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -2543,13 +2543,6 @@ table: TABLE STR

Re: smtpd: move authentication to table backends

2021-10-08 Thread aisha
On 21/10/08 05:34PM, aisha wrote: > Hi all, > I am still working on the table-procexec for opensmtpd > and while there, I was thinking of how to do authentication > using LDAP, which the current table-ldap from ports does not > support. > The primary reason for that, I bel

smtpd: move authentication to table backends

2021-10-08 Thread aisha
small change with mailaddrmap, where instead of returning ALL possible aliases that a user may use, we now pass the current mailaddr to the table, so it can now return a smaller set of addresses. It should not affect any workflow, so testing from others would be appreciated. Cheers, Aisha diff

Re: add table_procexec in smtpd

2021-06-22 Thread Aisha Tammy
) > >> should use fclose() instead of kill(), and maybe wait() too? I've moved it to fclose(), I've not used wait() for now. > > > > The implementation can probably be improved, this was a PoC that allowed me > > to write various table backends b

Re: add table_procexec in smtpd

2021-06-12 Thread Aisha Tammy
On 6/12/21 9:15 AM, Eric Faurot wrote: On Wed, Jun 09, 2021 at 05:41:36PM -0400, Aisha Tammy wrote: Hi, Here is the updated diff, which removes table_proc and adds table_procexec as the default backend when no backend name matches. Hi. I'm not opposed to the idea, but I have a couple

Re: add table_procexec in smtpd

2021-06-09 Thread Aisha Tammy
|$reqid|FOUND|$user" echo $reply done < /dev/stdin exit 0 This should hopefully satisfy the requirements for transparency and sanity. I will work on the opensmtpd-extras and make a PR in the github separately, if that sounds fine. Cheers, Aisha diff --git a/usr.sbin/smtpd/parse.y

Re: add table_procexec in smtpd

2021-06-09 Thread Aisha Tammy
On 6/9/21 10:34 AM, Gilles CHEHADE wrote: On 9 Jun 2021, at 15:47, Aisha Tammy wrote: On 6/9/21 5:19 AM, Gilles CHEHADE wrote: Hi, I wrote table_procexec (despite the copyright which I copy-pasted and forgot to replace author) so just providing a bit of insight: Ah, I did not know

Re: add table_procexec in smtpd

2021-06-09 Thread Aisha Tammy
e 'file', 'db' can be executables in /usr/libexec/smtpd or absolute paths. This may be a possible thing to do but maybe it can be done after procexec is tested a bit. Hopefully I've addressed the proper concerns. Best, Aisha Gilles On 8 Jun 2021, at 23:04, Aisha Tammy wrote: Hi, I

Re: add table_procexec in smtpd

2021-06-08 Thread Aisha Tammy
Hi, I've attached a slightly updated patch for the procexec. Ping for someone to take a look :) Cheers, Aisha diff --git a/usr.sbin/smtpd/smtpctl/Makefile b/usr.sbin/smtpd/smtpctl/Makefile index ef8148be8c9..2e8beff1ad1 100644 --- a/usr.sbin/smtpd/smtpctl/Makefile +++ b/usr.sbin/smtpd/smtpctl

add table_procexec in smtpd

2021-05-31 Thread Aisha Tammy
left in the table_procexec_check but commented it out. I am unsure if that is needed at all. - Maybe my method of closing, in table_procexec_close is not the best. (and maybe more are still left but those can be thought of later) This is my first diff for anything in base, so I may have made some mis

Re: services(5): more cleanup

2021-05-15 Thread Aisha Tammy
the effect of `pass in on egress proto tcp to port smtps ...`. Will that be broken by this? Similarly smtpd.conf? Or do they do this port-name translation separately? Best, Aisha ok kmos --Kurt Index: services === RCS file: /d/cv

Re: smtpd: use libtls

2021-01-27 Thread Aisha Tammy
maintain such a compatibility layer of libtls with openssl with minimal changes. It might be better to use their effort rather than adding a burden of both a compat libtls and opensmtpd in the portable version. Quite a lot of distributions already have this present so this might be a good idea to use their work. Thoughts? Best, Aisha

small typo in imsg_init.3

2020-12-12 Thread Aisha Tammy
Hi,   While creating a portable version of imsg, I noticed a small typo in the imsg_init.3 man page which says the returned value is 'len' instead of 'datalen'. Attached the patch to fix it. OK? Cheers, Aisha diff --git a/lib/libutil/imsg_init.3 b/lib/libutil/imsg_init.3 index 18720d1d59b

Re: Fwd: opensmtpd can't handle long lines in aliases table

2020-09-18 Thread Aisha Tammy
h a ~3050 line file in the table. Aisha > On Fri, 2020-09-18 at 14:46 +0200, Martijn van Duren wrote: >> Could you try the diff below? >> It should do exactly the same thing with less code. >> >> martijn@ >> >> On Fri, 2020-09-18 at 08:30 -0400, Aisha T

Fwd: opensmtpd can't handle long lines in aliases table

2020-09-18 Thread Aisha Tammy
Hi, Edgar (cc'ed) has kindly provided patches to fix a buffer error in mailaddr.c for opensmtpd. I've minimally tested it and am forwarding the patches. Would like to be able to get them into 6.8 release as this is quite problematic with lots of aliases. Thanks, Aisha Forwarded

Re: ldapd: adding bsd.schema

2020-09-10 Thread Aisha Tammy
On 9/10/20 2:03 AM, Robert Klein wrote: > On Sat, 5 Sep 2020 18:47:08 -0400 > Aisha Tammy wrote: > >> Sorry for the late reply. >> >> On 8/12/20 8:19 AM, Robert Klein wrote: >>> Hi, >>> >>> On Wed, 12 Aug 2020 09:00:18 +0200 >>> T

Re: ldapd: adding bsd.schema

2020-09-05 Thread Aisha Tammy
Sorry for the late reply. On 8/12/20 8:19 AM, Robert Klein wrote: > Hi, > > On Wed, 12 Aug 2020 09:00:18 +0200 > Theo Buehler wrote: > >> On Tue, Aug 11, 2020 at 10:22:51PM -0400, Aisha Tammy wrote: >>> Another bump. >> >> I think this is usefu

Re: ldapd: adding bsd.schema

2020-08-12 Thread Aisha Tammy
On 8/2/20 9:34 AM, Aisha Tammy wrote: > On 7/26/20 5:25 PM, Aisha Tammy wrote: >> On 7/26/20 5:21 PM, Aisha Tammy wrote: >>> Hi, >>> Am reviving an old thread from >>> https://marc.info/?l=openbsd-tech=152663835315469=4 >>> (i did cc reyk@ sorry

Re: ldapd: adding bsd.schema

2020-08-02 Thread Aisha Tammy
On 7/26/20 5:25 PM, Aisha Tammy wrote: > On 7/26/20 5:21 PM, Aisha Tammy wrote: >> Hi, >> Am reviving an old thread from >> https://marc.info/?l=openbsd-tech=152663835315469=4 >> (i did cc reyk@ sorry if it is noise) >> >> For some reason seems like th

Re: ldapd: adding bsd.schema

2020-07-26 Thread Aisha Tammy
On 7/26/20 5:21 PM, Aisha Tammy wrote: > Hi, > Am reviving an old thread from > https://marc.info/?l=openbsd-tech=152663835315469=4 > (i did cc reyk@ sorry if it is noise) > > For some reason seems like the patch didn't go through... > > I am reattaching it here, maybe

ldapd: adding bsd.schema

2020-07-26 Thread Aisha Tammy
would be really nice! Aisha Index: etc/examples/ldapd.conf === RCS file: /cvs/src/etc/examples/ldapd.conf,v retrieving revision 1.1 diff -u -p -u -p -r1.1 ldapd.conf --- etc/examples/ldapd.conf 11 Jul 2014 21:20:10 -

Re: symmetric toeplitz hashing

2020-06-13 Thread Aisha Tammy
see that > is to start from a uniform distribution on [0, 2^16-1] x [0, 15] and map > it 32:1 onto the good seeds -- (x, k) maps to x if x is good, and to x > with the k-th bit flipped if x is bad. > Yep, thanks this follows once I get rid of my assumption. Aisha

Re: symmetric toeplitz hashing

2020-06-13 Thread Aisha Tammy
On 6/13/20 9:19 AM, Theo Buehler wrote: > On Sat, Jun 13, 2020 at 08:46:13AM -0400, David Higgs wrote: >> On Fri, Jun 12, 2020 at 9:41 AM Theo Buehler wrote: >> >>> I finally found the time to think about the mathematics of this some >>> more and I'm now convinced that it's a sound construction.