{"id":1974,"date":"2008-02-19T23:39:34","date_gmt":"2008-02-19T14:39:34","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2008\/02\/19\/ldap_compatibility_of_linux_ab\/"},"modified":"2008-02-19T23:39:34","modified_gmt":"2008-02-19T14:39:34","slug":"ldap_compatibility_of_linux_ab","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2008\/02\/19\/1974\/","title":{"rendered":"LDAP compatibility of Linux ABI on FreeBSD"},"content":{"rendered":"<p>\u7814\u7a76\u5ba4\u306eFreeBSD\u74b0\u5883\u3067\u306f\u3001\u30e6\u30fc\u30b6\u8a8d\u8a3c\u306bLDAP\u3092\u4f7f\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u707d\u3044\u3057\u3066\u3001Linux ABI\u3067 acroread \u3068\u304b\u3092\u4f7f\u3048\u306a\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u4eca\u65e5\u306f\u305d\u308c\u3092\u89e3\u6c7a\u3057\u305f\u3002\u308f\u30fc\u3044\u3002<br \/>\n\u3061\u3087\u3063\u3068\u5f79\u306b\u7acb\u3064\u8a71\u306a\u306e\u3067\u82f1\u8a9e\u3067\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\nI have a LDAP server, but no NIS server in my lab for passwd database. LDAP is quite convenient way to manage passwd database since it&#8217;s compatible with both of recent Unix-based systems and samba. However, it requires nss_ldap or similar mechanisms, usually not included in base system.<br \/>\nMy problem was Linux ABI on FreeBSD boxes in my lab. Linux ABI has built-in NIS compatibility, but no LDAP compatibility. It&#8217;s really problematic when Linux binaries call getpwent() or something to lookup the passwd database (to make &#8220;dot-files&#8221; in home dirs), because Linux ABI know nothing about LDAP users. Flash plugin is almost OK without getpwent(), but Acrobat and Skype aren&#8217;t.<br \/>\nBut finally I found an workaround today!<br \/>\nThe workaround is:<br \/>\n&#8211; Just make \/compat\/linux\/etc\/passwd, without encrypted passwords,<br \/>\n&#8211; and it&#8217;s instantly available by &#8220;getent passwd | awk -F: &#8220;{ if($4==OUR_GID) print $1}&#8221; &#8221; !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7814\u7a76\u5ba4\u306eFreeBSD\u74b0\u5883\u3067\u306f\u3001\u30e6\u30fc\u30b6\u8a8d\u8a3c\u306bLDAP\u3092\u4f7f\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u707d\u3044\u3057\u3066\u3001Linux ABI\u3067 acroread \u3068\u304b\u3092\u4f7f\u3048\u306a\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u4eca\u65e5\u306f\u305d\u308c\u3092\u89e3\u6c7a\u3057\u305f\u3002\u308f\u30fc\u3044\u3002 \u3061\u3087\u3063\u3068\u5f79\u306b\u7acb\u3064\u8a71\u306a\u306e\u3067\u82f1\u8a9e\u3067\u66f8\u3044\u3066\u304a\u304d &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2008\/02\/19\/1974\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;LDAP compatibility of Linux ABI on FreeBSD&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-1974","post","type-post","status-publish","format-standard","hentry","category-unix-"],"_links":{"self":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1974"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1974\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}