[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-anubis] Bartlomiej Szymanski: Problems with Ident
From: |
Sergey Poznyakoff |
Subject: |
[bug-anubis] Bartlomiej Szymanski: Problems with Ident |
Date: |
Sat, 24 Jun 2006 15:00:47 +0300 |
[Forwarding back a message from Bartlomiej Szymanski, which
was inadvertently deleted while debugging moderation software.
Apologies for the inconvenience.]
------- Forwarded message
Date: Sat, 24 Jun 2006 13:27:47 +0200
From: Bartlomiej Szymanski <address@hidden>
To: address@hidden
Subject: Problems with Ident
Hello,
I have a problem concernig ident identification.
Ident recognizes user with space before the username ie " bartek".
Could anyone explain me step-by-step how to use the patch, I mean where
should I copy it or execute?
Here is the patch I found written by B. Dessent:
* ident.c (ident_extract_username): Do not return a username
with leading spaces.
- --- ident.c.orig 2005-04-06 01:20:14.062500000 -0700
+++ ident.c 2005-04-05 21:02:43.531250000 -0700
@@ -56,6 +56,8 @@ ident_extract_username (char *reply, cha
p++;
if (strlen (p) >= size)
return 1;
+ while(*p == ' ')
+ p++;
strcpy (username, p);
return 0;
}
My error looks as follows:
(42)SERVER <<< 61032 , 1200 : USERID : FreeBSD : bartek
> [11448] IDENT: resolved remote user to bartek.
> [11448] Invalid user name: bartek
User bartek exists on a machine.
Regards,
Bartek Szymanski
------- End of Forwarded message
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-anubis] Bartlomiej Szymanski: Problems with Ident,
Sergey Poznyakoff <=