Bah non, c'est faux ! 🤥
Clairement, les féministes, la #LDIF, Ligue du Droit International des Femmes, en particulier, réagissent et se battent depuis des années contre les mariages forcés et les mutilations/excisions.
Sabrina Medjebeur est une vilaine menteuse ! 🤥
@stephane_audic
Ah oui, « Qu'en penserait Simone de Beauvoir ? »
C’est une question adressée aux athées par le biais de la regrettée fondatrice de la #ldif, sur fond de l’idée de ce qu'est la liberté pour les féministes. Cette question met en lumière la dichotomie entre la liberté des femmes, non soumise à une religion, et la liberté de porter un voile. En bref, aucune haine — bien au contraire. Passez une bonne journée.
Qu'en penserait Simone de Beauvoir ?
#LDIF
@GenerationAthee

#Shellprogramming skills are pretty portable between #Linux, #BSD, and #macOS, but some of the underpinnings of macOS are non-standard. It helps to remind yourself that macOS is not a standard #BSD #Unix variant; Apple's #Darwin based systems do a lot of embrace-and-extend under the hood. Here's a practical example that comes up often in the enterprise.

Most #Linux systems export the current user's login name to the LOGNAME environment variable (often via sourcing /etc/profile) and may also export the user's default shell from the user's #GECOS record in /etc/passwd to the preferred shell (set by an application or the user) as the SHELL environment variable. The canonical way to get access to the user's default shell on most Unix-like systems is by parsing /etc/password or another NSS database with the getent utility, e.g. getent passwd "$LOGNAME" | cut -d: -f7.

There are other means to do this on Linux too, but macOS doesn't provide this common #POSIX compatible userspace utility. Instead, Darwin relies on opendirectory(8) for storing and accessing GECOS records, requiring other tools to retrieve the information. You can query a user's GECOS record on Darwin like so:

# directly from the Open Directory service, local or remote
dscl . -read "/Users/$(id -un)" shell | awk '/^shell:/ {print $2}'

# from the directory service's cache on the local system
dscacheutil -q user -a uid "$(id -u)" | awk '/^shell:/ {print $2}'

Be aware that there are other ways to do this, too, but old school utilities like whoami have been deprecated in favor of id -un, and finger as implemented on most systems (e.g. via [x]inetd, or reading various #dotfiles from users' directories locally or over the network) is considered a security risk.

In containers, especially with non-standard shells, or with centralized #IAM using #LDAP or #ActiveDirectory, you may have to match the local #userID to a remote #LDIF record to before grepping for the data you need. In addition, nsswitch.conf, PAM modules, NIS+, or other less-common data sources may need to be consulted and each will generally have specific utilities for looking up the stored or cached information that is equivalent to what's normally provided in the 7th GECOS field for each user on standard Linux and Unix systems.

As always, your mileage may vary based on use case or implementation details. On the plus side, problems are rarely insoluble when you know where to dig for a solution!

Hihi, der #suse #support hat mir heute https://blog.koehntopp.info/2021/01/05/using-python-to-bash.html von @isotopp empfohlen, weil ich beim Parsen von #LDIF in #bash so meine Problemchen mit #Umlauten habe, weil die ja korrekterweise #base64 kodiert werden. 😄
Using Python to bash | Die wunderbare Welt von Isotopp

Kris Köhntopp's blog (Fedi: @isotoppinfosec.exchange)

Die wunderbare Welt von Isotopp
Spent all day trying to get an LDIF file to be imported into Softerra. Getting rid of spaces, adding code, removing code, adding spaces etc. What finally did it, is separating each attribute change/deletion. But should be much easier to modify a user next time.
#ldap #softerra #ldif
Szenario: #SOGo nach #Nextcloud portieren. #LDIF geht nicht, Android Export als #vCard 2.1, Import schlägt fehl. Lösung - konvertieren zu 3.0 mit #vcard2to3 dank #Python: https://github.com/jowave/vcard2to3
GitHub - jowave/vcard2to3: Convert vcards from version 2.1 to version 3.0

Convert vcards from version 2.1 to version 3.0. Contribute to jowave/vcard2to3 development by creating an account on GitHub.

GitHub