Codebase list libauthen-tacacsplus-perl / fresh-snapshots/main
[ gregor herrmann ] [ Debian Janitor ] New upstream snapshot. Debian Janitor 2 years ago
8 changed file(s) with 23 addition(s) and 44 deletion(s). Raw diff Collapse all Expand all
6464 0.26 2015-12-08 Mike McCauley
6565 - pass CFLAGS and CPPFLAGS explicitly in the subdirectory to get all
6666 hardening flags, Patch from Florian Schlichting.
67
68 0.27 2020-02-09 Mike McCauley
69 - Patch from Jacob Farkas via RT to allow building under on Alpine Linux
70 under Docker on armv7l, and possibly others
71
72 0.28 2020-03-14 Mike McCauley
73 - Patch from Heikki Vatiainen:
74 - File descriptor leak introduced in release 0.25 where check for open
75 connection was added to TacacsPlus::close() before calling tacpluslib's
76 deinit_tac_session()
77 - File descriptor leak in tacpluslib's init_tac_session where close()
78 was not called for the newly created socket if, for example, destination
79 host was unreachable
80 - Port and Timeout TacacsPlus::new() parameters were documented
81 incorrectly. The are not passed within array references.
1616 tacpluslib/tac_plus.h
1717 tacpluslib/tacplus_client.h
1818 tacpluslib/utils.c
19 META.json
20 META.yml
19
20 META.yml Module meta-data (added by MakeMaker)
21 META.json Module JSON meta-data (added by MakeMaker)
33 "unknown"
44 ],
55 "dynamic_config" : 1,
6 "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010",
6 "generated_by" : "ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010",
77 "license" : [
88 "unknown"
99 ],
3131 }
3232 },
3333 "release_status" : "stable",
34 "version" : "0.28",
35 "x_serialization_backend" : "JSON::PP version 2.97001"
34 "version" : "0.26",
35 "x_serialization_backend" : "JSON::PP version 4.04"
3636 }
66 configure_requires:
77 ExtUtils::MakeMaker: '0'
88 dynamic_config: 1
9 generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010'
9 generated_by: 'ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010'
1010 license: unknown
1111 meta-spec:
1212 url: http://module-build.sourceforge.net/META-spec-v1.4.html
1616 directory:
1717 - t
1818 - inc
19 version: '0.28'
19 version: '0.26'
2020 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
1616 @EXPORT_OK = qw(
1717 TACPLUS_CLIENT
1818 );
19 $VERSION = '0.28';
19 $VERSION = '0.26';
2020
2121 sub new
2222 {
4949 $h{'Key'},
5050 $h{'Timeout'} ? $h{'Timeout'} : 15
5151 );
52 $self->{'open'} = 1 if ($res >= 0);
5253 last if ($res >= 0);
5354 }
5455 }
55 $self->{'open'} = 1 if ($res >= 0);
5656 undef $self if ($res < 0);
5757 $self;
5858 }
145145
146146 $tac = new Authen::TacacsPlus(Host=>$server,
147147 Key=>$key,
148 Port=>'tacacs',
149 Timeout=>15);
148 [Port=>'tacacs'],
149 [Timeout=>15]);
150150
151151 or
152152
153153 $tac = new Authen::TacacsPlus(
154 [ Host=>$server1, Key=>$key1, Port=>'tacacs', Timeout=>15 ],
155 [ Host=>$server2, Key=>$key2, Port=>'tacacs', Timeout=>15 ],
156 [ Host=>$server3, Key=>$key3, Port=>'tacacs', Timeout=>15 ],
154 [ Host=>$server1, Key=>$key1, [Port=>'tacacs'], [Timeout=>15] ],
155 [ Host=>$server2, Key=>$key2, [Port=>'tacacs'], [Timeout=>15] ],
156 [ Host=>$server3, Key=>$key3, [Port=>'tacacs'], [Timeout=>15] ],
157157 ... );
158158
159159 $tac->authen($username,$passwords);
169169
170170 $tac = new Authen::TacacsPlus(Host=>$server,
171171 Key=>$key,
172 Port=>'tacacs',
173 Timeout=>15);
172 [Port=>'tacacs'],
173 [Timeout=>15]);
174174
175175 Opens new session with tacacs+ server on host $server, encrypted
176176 with key $key. Undefined object is returned if something wrong
0 libauthen-tacacsplus-perl (0.28-2) UNRELEASED; urgency=medium
0 libauthen-tacacsplus-perl (0.28+git20180225.1.ce56811-1) UNRELEASED; urgency=medium
11
2 [ gregor herrmann ]
23 * Update 'DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow' to '=+all'.
34
4 -- gregor herrmann <gregoa@debian.org> Sun, 17 May 2020 12:05:39 +0200
5 [ Debian Janitor ]
6 * New upstream snapshot.
7
8 -- gregor herrmann <gregoa@debian.org> Thu, 03 Jun 2021 17:42:54 -0000
59
610 libauthen-tacacsplus-perl (0.28-1) unstable; urgency=medium
711
208208 if( flags < 0 ) {
209209 //fprintf( stderr, "fcntl: %s\n", strerror(errno) );
210210 tac_err = "socket error";
211 close(tac_fd);
212211 return -1;
213212 }
214213
217216 if( res < 0 ) {
218217 //fprintf( stderr, "fcntl: %s\n", strerror(errno) );
219218 tac_err = "socket error";
220 close(tac_fd);
221219 return -1;
222220 }
223221
227225 // connection not established, but in progress
228226 if( res < 0 && (errno != EINPROGRESS) ) {
229227 tac_err = "connection failed";
230 close(tac_fd);
231228 return -1;
232229 }
233230
241238 res = select( tac_fd+1, NULL, &wset, NULL, &tv );
242239 if( res < 0 ) {
243240 tac_err = "select failed";
244 close(tac_fd);
245241 return -1;
246242 }
247243 else if( res == 0 ) {
248244 tac_err = "timeout";
249 close(tac_fd);
250245 return -1;
251246 }
252247 if( res > 0 ) {
255250 len = sizeof(optval);
256251 if( getsockopt( tac_fd, SOL_SOCKET, SO_ERROR, (void *)&optval, &len ) > 0 ) {
257252 tac_err = "getsockopt failed";
258 close(tac_fd);
259253 return -1;
260254 }
261255 if( optval != 0 ) {
262256 tac_err = "connection failed";
263 close(tac_fd);
264257 return -1;
265258 }
266259 // optval == 0 --> no error, connection established
160160 #include <syslog.h>
161161 #else
162162 #include <sys/syslog.h>
163 #endif
164
165 #ifdef LINUX
166 #include <fcntl.h>
167163 #endif
168164
169165 #include <utmp.h>