gecco
(Carlo Minucci)
1
(Sorry for my bad english)
I write some CLI utilities for nethserver. You can found here https://github.com/carlominucci/MinucciUtilities
There is three CLI command:
jm
is for list of joined machine to the domain
lf
is for list of opened file bu user
but the most important command is ldu
With ldu
you can search user who are not logged from some year, passed like paramenter
example:
ldu 0
is for list user who never logged
ldu 2
is for list user who are not logged from 2 years ago.
I hope i have explained with my bad englis
Iād like to receiver some feedback.
7 Likes
pike
(Michael Kicks)
2
These utilities apply to which kind of account provider?
dnutan
(Marc)
4
For Active Directory, as far as I understand.
1 Like
giacomo
(Giacomo Sanchietti)
5
Wonderful, thank for sharing!
1 Like
mrmarkuz
(Markus Neuberger)
6
Thanks for your work!
I found that your scripts work with remote AD too.
ldu
is really nice for finding unused/old/remnant users.
Found a little bug: If no user is connected, lf
throws an error:
[root@server MinucciUtilities]# ./lf
PHP Notice: Undefined offset: 1 in /root/MinucciUtilities/lf on line 9
Usage: [-?fMRSTrAV] [-?|--help] [--usage] [-B|--broadcast BROADCAST-ADDRESS] [-f|--flags] [-U|--unicast STRING] [-M|--master-browser] [-R|--recursion] [-S|--status] [-T|--translate] [-r|--root-port] [-A|--lookup-by-ip]
[-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [--option=name=value] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
[-i|--scope SCOPE] <NODE> ...
PHP Notice: Undefined offset: 1 in /root/MinucciUtilities/lf on line 11
PHP Notice: Undefined offset: 2 in /root/MinucciUtilities/lf on line 15
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
5 Likes
gecco
(Carlo Minucci)
7
Somebody can me explain why the ldap date format is so complicated?
gecco
(Carlo Minucci)
8
I added some new utilities
1 Like
Any NS8 adoption for the Ad utilities?
gecco
(Carlo Minucci)
10
I have not tested on NS8.
I add to my todo list
2 Likes