ããŒã1.èšå®ã®åŸ®åŠã
ãœãŒã¹ããŒã¿
- ãã¡ã€ã³ã³ã³ãããŒã©ãŒ-Windows Server 2008 R2ïŒADãDNSãDHCPïŒIP-10.10.15.31
- ãã¡ã€ã³å-åæ
- ããªã³ããµãŒããŒ-Linux OSïŒOpenSUSE 13.2 x64ãã«ãŒãã«3.16.7-42-defaultã䜿çšïŒIP-10.10.15.11
- ã±ã«ããã¹1.12.2-24.1
- winbind 4.2.4-40.1
- LDAP 2.4.39-8.9.1
- Samba 4.2.4-40.1
- CUPS 1.5.4-21.9.1
linuxããã§ã«ã€ã³ã¹ããŒã«ãããŠãããå¿ èŠãªãã¹ãŠã®ããã±ãŒãžãã€ã³ã¹ããŒã«ãããŠãããšããŸãã
ç¹ã«ãã®ããŒãã«é¢ããèšäºãããããããã®ã§ãLinuxãWinodwsãã¡ã€ã³ã«å ¥ããããšã«ããŸã泚æãåããŸããã ããªãè¯ãèšäºãžã®ãªã³ã¯ãæäŸããŸã-https://habrahabr.ru/post/143190/
éèŠãªç¹ã®ã¿ã説æããŸãã ãŸãã以äžã§ã¯ãäžèšã®ãµãŒãã¹ã®ãã¹ãŠã®äœæ¥æ§æãã¬ã€ã¢ãŠãããŸãã ããŸããŸãªèšäºãããã¥ã¢ã«çšã«ã«ã¹ã¿ãã€ãºã
æå»åæ
LinuxãµãŒããŒã®æéã¯ããã¡ã€ã³ã³ã³ãããŒã©ãŒãšåãã§ããå¿ èŠããããŸããããã§ãªãå Žåããã¡ã€ã³ã«ç§»åã§ããŸããã
ããã«ã¯ããã€ãã®ãªãã·ã§ã³ããããŸããã³ã³ãããŒã©ãšããªã³ããµãŒããŒã®ãã¡ã€ã³ã§åãntpæå»åæãµãŒããŒãæå®ããããããªã³ããµãŒããŒã®ntpãµãŒããŒãšããŠã³ã³ãããŒã©ãŒã®IPãã¡ã€ã³ãæå®ããŸãã 2çªç®ã®ãªãã·ã§ã³ãèšå®ããŸãã
/etc/ntp.conf server 10.10.15.31 iburst
次ã®ããã«åæã確èªã§ããŸãã
print-01:~ # ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== *10.10.15.31 85.236.191.80 3 u 888 1024 377 0.698 6.690 7.232
ãŠã£ã³ãã€ã³ã
/etc/nsswitch.conf passwd: files winbind group: files winbind shadow: files winbind hosts: files [dns] wins
å€ãã®äººã¯ããããã®èšå®ã¯ãµã³ããã±ã«ããã¹ãLDAPã«ã¯ãŸã£ããå¿ èŠãªããšäž»åŒµããŸããã颚氎ã倧奜ãã§ãïŒïŒïŒã 以åãSambaãKerberosãšLDAPãªãã®PDCïŒãã©ã€ããªãã¡ã€ã³ã³ã³ãããŒã©ãŒïŒãšããŠæ§æããŸããããããã¯ãã¹ãŠWinXPã¯ã©ã€ã¢ã³ãã§æ©èœããŸããããšç§ã¯ç¢ºèªããŸãã
/etc/samba/smb.conf winbind separator = / winbind enum users = Yes winbind enum groups = Yes winbind use default domain = Yes winbind nss info = rfc2307 winbind refresh tickets = Yes
ãµã³ã
/etc/samba/smb.conf idmap uid = 500-10000000 idmap gid = 500-10000000 idmap backend = ldap:ldap://10.10.15.31
ãããã®èšå®ã¯ãããŒãžã§ã³3.X以éã®sambaèªäœã§ã¯æšå¥šãããŠããŸããããå€ãã®èšäºã§ç€ºãããŠããŸãã ãããã®ãã©ã¡ãŒã¿ãŒãæ°ããããŒãžã§ã³ã®sambaã§æå®ãããšãtestparmã¯æ¬¡ã衚瀺ããŸãã
print-01:/etc/samba # testparm -v Load smb config files from /etc/samba/smb.conf WARNING: The "idmap backend" option is deprecated WARNING: The "idmap gid" option is deprecated WARNING: The "idmap uid" option is deprecated
ãã©ã¡ãŒã¿ã¬ã«ã -ãã¡ã€ã³åã¯å€§æåã§æå®ããå¿ èŠããããŸãïŒ
realm = DOMAIN.COM
Kerberos
ã»ã¯ã·ã§ã³ã¬ã«ã -ãã¡ã€ã³åã¯å€§æåã§æå®ããå¿ èŠããããŸãïŒ
/etc/krb5.conf [realms] DOMAIN.COM = {...
ããããªããšãKerberosããã§ãã¯ãããšãã«ãã®ãããªãšã©ãŒãçºçããå¯èœæ§ããããŸã
kinit username@DOMAIN.COM kinit(v5): KDC reply did not match expectations while getting initial credentials
å¿ èŠãªãµãŒãã¹ãæ§æããLinuxãã·ã³ãWindowsãã¡ã€ã³ã«æ£åžžã«å ¥åãããšããŸãã CUPSèšå®ã«ç§»ããŸãããã
ã«ãã
/etc/cups/cupsd.conf # LogLevel debug # (, , root) SystemGroup root # 631 / Listen for connections on Port 631. Port 631 Listen /run/cups/cups.sock BrowseLocalProtocols CUPS BrowseRemoteProtocols CUPS # / Show shared printers on the local network. Browsing On BrowseOrder allow,deny BrowseAllow all BrowseAddress 10.10.15.0/24 BrowseAddress 172.19.2.0/24 BrowseAddress 172.19.3.0/24 BrowseAddress 172.19.4.0/24 # Default authentication type, when authentication is required... DefaultAuthType Basic WebInterface Yes
ããã§èª¬æããŸãã
BrowseOrder allowãdeny-ã·ã¹ãã ããã£ã¬ã¯ãã£ãã®èš±å¯ãšçŠæ¢ãæ€èšããé åºïŒèš±å¯ãããŠããªããã®ã¯ãã¹ãŠçŠæ¢ãããŸãã
BrowseAllow all-å©çšå¯èœãªãã¹ãŠã®LANããªã³ã¿ãŒã衚瀺ããŸã
BrowseAddress-ããªã³ã¿ãŒãžã®ã¢ã¯ã»ã¹ãå¿ èŠãªãã¹ãŠã®ãµãããããæå®ããŸã
DefaultAuthType-èªèšŒã¿ã€ãã ããã©ã«ãã¯åºæ¬ã§ãã
åŸè ãç ç²ã«ããŠã ããŽã«æ¬¡ã®ããšã«æ°ä»ããŸããã
/var/log/cups/error_log cupsdAuthorize: No authentication data provided.
ãã®ãããã¯ã«é¢ãã2ã€ã®æšå¥šäºé ãèŠã€ããŸããã
-Sambaã§ã®ããªã³ã¿ãŒã®å ±æãå®å šã«ç¡å¹ã«ããŸãïŒç¹ã«ããªã³ããµãŒããŒã§éåžžã«äŸ¿å©ã§ãïŒ
-cupsd.confã«ãã®ãªãã·ã§ã³ãããå Žåã¯ãBasicãNoneã«çœ®ãæããŸãïŒéããæããŸããã§ããïŒ
cups.orgã§ããã®ãªãã·ã§ã³ã®å€ã¯2-BasicãšNegotiateãåŸè ã¯kerberosã䜿çšããèªèšŒã«ãªããŸãã
ãããã«ããããã®ãšã©ãŒã¯ã«ããã®äœæ¥ã«ã¯åœ±é¿ããŸããã
# . <Location /> # Allow remote access... Order allow,deny Allow all </Location>
ãã¹ãŠã®ããŒã«ã«ãµãããããžã®ã¢ã¯ã»ã¹ã瀺ããŸããã BrowseAddressã§è¡ã£ãããã«ãååãšããŠãAllowãã£ã¬ã¯ãã£ãã§ç°ãªããµãããããæå®ã§ããŸãã
次ã«ã管çããã«ãšæ§æãã¡ã€ã«ãžã®ã¢ã¯ã»ã¹ãæ§æããŸãã ããã§ããµããããã瀺ãAllowãã£ã¬ã¯ãã£ãïŒåã»ã¯ã·ã§ã³ïŒãŸãã¯ããªã³ã¿ãŒã管çã§ããåå¥ã®IPã¢ãã¬ã¹ãç»é²ããããšãã§ããŸãã ãã®ãã£ã¬ã¯ãã£ããè¿œå ããªãå Žå-ä»»æã®LANãµãããããã管çã§ããŸã-ãã¹ãŠèš±å¯ãšåãã§ãã
<Location /admin> Order allow,deny </Location> <Location /admin/conf> AuthType Default Require user @SYSTEM </Location>
ããã§ã«ããã®ã»ããã¢ãããå®äºããŸããã åèµ·åããŠãã ããã OpenSUSEã§ã¯ãããã¯systemctlãä»ããŠè¡ãããŸã
systemctl restart cups.service
ããã§ãcups'a Webã€ã³ã¿ãŒãã§ãŒã¹ããããªã³ã¿ãŒã®ã»ããã¢ãããéå§ã§ããŸãã å°ã埮åŠãªç¹ããããŸã-ããªã³ã¿ãŒãå€æŽãè¿œå ãåé€ããã«ã¯ãsslïŒ https ïŒçµç±ã§cups Webã€ã³ã¿ãŒãã§ãŒã¹ã«ã¢ã¯ã»ã¹ããå¿ èŠããããŸã ã Webãã©ãŠã¶ãŒã§éã
https://10.10.15.11:631/
ããã§ãªãå Žåã次ã®ãšã©ãŒã衚瀺ãããŸãã
ãŠã§ãã€ã³ã¿ãŒãã§ãŒã¹ãä»ããŠã«ããã«ããªã³ã¿ãŒãè¿œå ããã®ã¯ç°¡åãªäœæ¥ã§ããããã説æããŸããã [管ç]ã¿ãã§æšå¥šããå¯äžã®ããšã¯ããªãã·ã§ã³ãæå¹ã«ãªã£ãŠãããã©ããã確èªããããšã§ãã
-ãã®ã·ã¹ãã ã«æ¥ç¶ãããŠããããªã³ã¿ãŒã®å ±æãèš±å¯ãã
-ã€ã³ã¿ãŒãããããã®å°å·ãèš±å¯ãã
ãŸããããªã³ã¿ãŒãã€ã³ã¹ããŒã«ãããšãã¯ã[ãã®ããªã³ã¿ãŒã®å ±æãèš±å¯ãã]ãªãã·ã§ã³ãæå¹ã«ããããšãå¿ããªãã§ãã ããã
誰ããµã³ãã«ç ©ããããããªãã®ããã³ããã§ã¯ãããã³ã«ippïŒInternet Printing ProtocolïŒã䜿çšããŠå°å·ããå¯èœæ§ããããŸãã Windowsã§ã¯ãããªã³ã¿ãŒã¯æ¬¡ã®ããã«ã€ã³ã¹ããŒã«ãããŸããã³ã³ãããŒã«ããã«âããªã³ã¿ãŒâããªã³ã¿ãŒã®ã€ã³ã¹ããŒã«âãããã¯ãŒã¯ããªã³ã¿ãŒâã€ã³ã¿ãŒãããäžã®ããªã³ã¿ãŒã«æ¥ç¶ãïŒWin7 / 8/10ã®å Žåã¯ãååã§å ±æããªã³ã¿ãŒãéžæãïŒãURLãšããŠãã«ãã¹ãæå®ããŸãã
http://10.10.15.11:631/printers/Kyocera_6525_PTO http://Print-01:631/printers/Kyocera_6525_PTO
ããªã³ã¿ãŒãžã®ãã«ãã¹ã¯ãWebã€ã³ã¿ãŒãã§ã€ã¹ã«ããã®ãã©ãŠã¶ãŒã®ã¢ãã¬ã¹ããŒããã³ããŒã§ããŸãã
ãã®æ¹æ³ã§ã¯ãã·ã¹ãã ã¯ããªã³ã¿ãŒãã©ã€ããŒãèŠæ±ããŸãã äºåã«ããŠã³ããŒãããŠãã€ã³ã¹ããŒã«äžã«ãã£ãŒãããå¿ èŠããããŸãã
RAKE_â1ïŒ WinXPã§ã¯ãSP2以éã®ãµãŒãã¹ããã¯ã§ippãããã³ã«ãããã©ã«ãã§æå¹ã«ãªã£ãŠããŸããWindows7 / 8/10ã§ã¯ããã€ã³ã¿ãŒãããå°å·ãã³ã³ããŒãã³ããæå¹ã«ãªã£ãŠããªãå ŽåããããŸãã
ã³ã³ãããŒã«ããã«ããã€ã³ã¹ããŒã«âããã°ã©ã ãšã³ã³ããŒãã³ã-Windowsã³ã³ããŒãã³ããæå¹ãŸãã¯ç¡å¹ã«ããŸãã ãµãŒããŒWindowsã§ã¯ããã®ãããã³ã«ã¯ããã©ã«ãã§å®å šã«ç¡å¹ã«ãªã£ãŠããŸãã ãµãŒããŒãããŒãžã£ãŒâã³ã³ããŒãã³ãâã³ã³ããŒãã³ããè¿œå âã€ã³ã¿ãŒãããçµç±ã§ã¯ã©ã€ã¢ã³ããå°å·ããŸãã
ç§ã¯ãã®åé¡ã«2æ¥éèŠãã¿ãŸããã ãã®æ¹æ³ã§ããªã³ã¿ãŒãã€ã³ã¹ããŒã«ããããšãããšããWindowsãããªã³ã¿ãŒã«æ¥ç¶ã§ããŸããããšãããšã©ãŒã衚瀺ãããŸããã åæã«ãã«ãããšãµã³ãã®ãã°ã«ã¯ç¯çœªè ã¯ããŸããã ããã¯ã¡ã¬ãã¬ãã·ã¥ã§ããã tcpdumpãšwiresharkã䜿çšããŠããããã¯ãŒã¯ã€ã³ã¿ãŒãã§ãŒã¹ã®ãããŒå šäœãåæããããšã«ãªããŸããããcasãéããŸããã åé¡ã¯WindowsåŽã«ãããŸããã
ããŒã2.ãã©ã€ããŒã®ã€ã³ã¹ããŒã«
cupsã®ããªã³ã¿ãŒãã€ã³ã¹ããŒã«ãããŠãããšä»®å®ããŠãWindowsã®ããªã³ã¿ãŒãã©ã€ããŒã®ã³ããŒãšç»é²ãéå§ããŸãããã
Windowsã«ã€ã³ã¹ããŒã«ãããŠãããã©ã€ããŒãæåã§ã³ããŒã§ããŸã-ïŒ WINDIRïŒ \ system32 \ spool \ drivers \ W32X86ããã³\ x64ãã©ã«ããŒã«sambaãã©ã€ããŒãã«ãŒã³-/ var / lib / samba / drivers / W32X86ããã³./x64ã䜿çšããŠç»é²ããŸãã³ã³ãœãŒã«ãŠãŒãã£ãªãã£rpcclientã§ãããããã¯éçŸå®çãªã¯ãšã¹ãã§ãããã¢ã¯ãã£ããã£ã¯æ°åŒ±ãªäººåãã§ã¯ãããŸããã
ããç°¡åãªæ¹æ³ã§é²ããŸãã ãã¡ã€ã³ã®ãã¡ã€ã³ç®¡çè ã¢ã«ãŠã³ãã§Windowsãã·ã³ã«ãã°ã€ã³ããŠããŸãã äŸãšããŠWinXPã瀺ããŸãïŒä»¥éãWin7ã§ã®äœæ¥æ¹æ³ã説æããŸãïŒã ãšã¯ã¹ãããŒã©ãŒãéããIPãŸãã¯ååã§ããªã³ããµãŒããŒã®ã¢ãã¬ã¹ãå ¥åããã¢ãã¬ã¹ããŒã§ã\\ Print-01 \ãŸãã¯\\ 10.10.15.11 \ã«ç§»åããPrinters and Faxesãã©ã«ããŒã«ç§»åããŸãã
ããªã³ã¿ãŒãå³ã¯ãªãã¯âããããã£ã
ãã©ã€ããŒã®ã€ã³ã¹ããŒã«ã®ç³ãåºã§ã¯ãããããšèšããŸãã
ã詳现ãã¿ãã«ç§»åããŠå€æŽããŸãã
ãã£ã¹ã¯ããã€ã³ã¹ããŒã«ãããã©ã€ããŒã§ãã©ã«ããŒãæå®ããŸãã ãªã¹ãã§ããªã³ã¿ãŒãéžæãã[OK]ãã¯ãªãã¯ããŸãã
éèŠ -æåã¯ãã·ã¹ãã ã64ãããã§ãã£ãŠãã32ããããã©ã€ããŒã§ç¶èŠªãæå®ããå¿ èŠããããŸãïŒ 64ãããã®woodã¯åŸã§ã€ã³ã¹ããŒã«ã§ããŸãã
ãã©ã€ããŒã¯å ±æsambaãã©ã«ããŒã«ã³ããŒãããŠããŸãã
[ã¢ã¯ã»ã¹]ã¿ãã«ç§»åãã[ã¢ã¯ãã£ããªDiectoryã«è¿œå ]ããã¯ã¹ããªã³ã«ããŠãé©çšããŸãã 64ããããã©ã€ããŒãå¿ èŠãªå Žåã¯ã[è¿œå ãã©ã€ããŒ]ãã¯ãªãã¯ããŸã
ãããŠãããã¯ã¹x64âOKããã§ãã¯ããŸãã ã·ã¹ãã ã¯ããã©ã€ããŒãå«ããã©ã«ããŒãèŠæ±ããŸã-åæ§ã«ãã©ã«ããŒã«ãã£ãŒãããŸãã
å¿ èŠã«å¿ããŠã[å šè¬]ã¿ãã§ããããã¯ãŒã¯ããªã³ã¿ãŒã®ååãå€æŽã§ããŸãã ãããã®ååã¯ããšã¯ã¹ãããŒã©ã§ããªã³ããµãŒããŒ\\ Print-01 \ãŸãã¯\\ 10.10.15.11 \ã«åãæ¿ãããšè¡šç€ºãããŸãã
ADã§ã¯ãããªã³ã¿ãŒåã¯ã«ããã§åŒãã ååãšåãã§ãã
ADããããªã³ã¿ãŒãåé€ããŸãã
ãµãŒããŒãããŒãžã£ãŒâActive Directoryãã¡ã€ã³ãµãŒãã¹âActive DirectoryãŠãŒã¶ãŒãšã³ã³ãã¥ãŒã¿ãŒâããŠã¹ã®å³ãã¿ã³ã§ãã¡ã€ã³ãéžæâæ€çŽ¢âãããªã³ã¿ãŒãããããããŠã³ãªã¹ãããã°ã«ãŒããéžæâæ€çŽ¢ã
ãªã¹ãããåé€ãããããªã³ã¿ãŒãèŠã€ããŸãâãåé€ããå³ã¯ãªãã¯ããŸã
Windows 7/8/10ã§ã®ãã©ã€ããŒã®ã€ã³ã¹ããŒã«ã
Windows 7/8/10ã§ã¯ãprintmanagement.mscã¹ãããã€ã³ããããªã³ããµãŒããŒã«ãã©ã€ããŒãã€ã³ã¹ããŒã«ã§ããŸãã ã¹ã¿ãŒãâå®è¡âprintmanagement.msc
泚 Homeããã³Home Premiumã§ã¯ããã®ããŒã«ã¯ãµããŒãããŠããŸããã Domain Adminãããã®ã¹ãããã€ã³ãå®è¡ããå¿ èŠããããŸãã æåã«ãIPãŸãã¯ååã§ããªã³ããµãŒããŒãè¿œå ããå¿ èŠããããŸãã
ããã«ãããã§ã¯ãäžèšã®æé ãšåæ§ã«ãããªã³ããµãŒããŒã®ããªã³ã¿ãŒã管çã§ããŸãã
ããã§ããªã³ããµãŒããŒãã©ã€ããŒã管çããããšã䟿å©ã§ã-åé€/è¿œå ã
ãŸã 決å®ã§ããªãã£ãããš
Windows Server 2012 R2ã§ã¯ãå ±æããªã³ã¿ãŒã¯ã€ã³ã¹ããŒã«ãããŸããã cupsãšsambaã®ãã°ã«ãšã©ãŒã¯ãããŸããã prinerãã€ã³ã¹ããŒã«ãéå§ãããã©ã€ããŒãã³ããŒãããŸããããã€ã³ã¹ããŒã«ã®å®äºãã®æ®µéã§ãäžèšã®ãšã©ãŒãWindowsã¯ããªã³ã¿ãŒã«æ¥ç¶ã§ããŸãããããããã¢ããããŸãã ã³ã³ããŒãã³ã "Internet Print Client"ã¯ã€ã³ã¹ããŒã«ãããŠããŸãããããã¯Windowsã®äžçš®ã®åŠšå®³ã§ãããããããippãããã³ã«ã®å¯èœæ§ãé«ããšæããŸãã
çµè«ãšããŠãCUPSã«Panasonic KX-FLB883RUããªã³ã¿ãŒãã€ã³ã¹ããŒã«ããç§secretãå ±æããŸãã ãã®ããªã³ã¿ãŒçšã®Linuxçšãã©ã€ããŒã¯ãããŸããããæšæºã®OpenPrintingPPDsããã±ãŒãžã®äžéšã§ããljet2p.ppdïŒPanasonic KX-P4410 Foomatic / ljet2pïŒãå¥è·¡çã«ç»å ŽããŸããã ãœã±ããçµç±ã§CUPSã«ããªã³ã¿ãŒãã»ããã¢ããããŸãïŒ// IP_address /ã ãã¹ãŠãäžå ·åãªãæ©èœããŸãã 誰ãã圹ã«ç«ã€ãšãããªã
次ã®èšäºã§ã¯ããã¡ã€ã³ãŠãŒã¶ãŒçšã®ããªã³ã¿ãŒãã€ã³ã¹ããŒã«ããããã®ãªã¢ãŒãèªååã·ã¹ãã ã«ã€ããŠèª¬æããŸãã ãŸãã¯ãã®ãããªãã®ïŒ
ç§ã®ä»äºã®èšå®ã¯ä»¥äžãåç §ããŠãã ããã
/etc/krb5.conf
[libdefaults] ticket_lifetime = 24000 default_realm = INITIAL.LOCAL dns_lookup_realm = false dns_lookup_kds = false clockskew = 300 # ------------------------------------- kdc_timesync = 1 ccache_type = 4 forwardable = true proxiable = true [realms] INITIAL.LOCAL = { kdc = dc-01.initial.local default_domain = initial.local # admin_server = kerberos.initial.local:749 admin_server = dc-01.initial.local } # EXAMPLE.COM = { # kdc = kerberos.example.com # admin_server = kerberos.example.com # } [logging] kdc = FILE:/var/log/krb5/krb5kdc.log admin_server = FILE:/var/log/krb5/kadmind.log default = SYSLOG:NOTICE:DAEMON [domain_realm] .initial.local = INITIAL.LOCAL .INITIAL.local = INITIAL.LOCAL .INITIAL = INITIAL.LOCAL initial.local = INITIAL.LOCAL [appdefaults] pam = { debug = false ticket_lifetime = 1d renew_lifetime = 1d forwardable = true proxiable = false retain_after_close = false minimum_uid = 1 use_shmem = sshd clockskew = 300 }
/etc/nsswitch.conf
# /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Legal entries are: # # compat Use compatibility setup # nisplus Use NIS+ (NIS version 3) # nis Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # [NOTFOUND=return] Stop searching if not found so far # # For more information, please read the nsswitch.conf.5 manual page. # # passwd: files nis # shadow: files nis # group: files nis # passwd: compat winbind # group: compat winbind # shadow: compat winbind passwd: files winbind group: files winbind shadow: files winbind # hosts: files mdns4_minimal [NOTFOUND=return] dns wins hosts: files [dns] wins networks: files dns services: files protocols: files rpc: files ethers: files netmasks: files netgroup: files nis publickey: files bootparams: files automount: files nis aliases: files
/etc/openldap/ldap.conf
# # LDAP Defaults # # See ldap.conf(5) for details # This file should be world readable but not world writable. #BASE dc=example,dc=com #URI ldap://ldap.example.com ldap://ldap-master.example.com:666 #SIZELIMIT 12 #TIMELIMIT 15 #DEREF never URI ldap://10.10.15.31 BASE DC=initial,DC=local
/etc/samba/smb.conf
# smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the # samba-doc package is installed. [global] workgroup = INITIAL # passdb backend = smbpasswd printing = cups printcap name = cups printcap cache time = 750 cups options = raw map to guest = Bad User logon path = \\%L\profiles\.msprofile logon home = \\%L\%U\.9xprofile logon drive = P: usershare allow guests = Yes add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ domain logons = No domain master = No security = ADS encrypt passwords = yes # idmap backend = ldap:ldap://10.10.15.31 ldap admin dn = admin@initial.local ldap group suffix = ou=Groups ldap idmap suffix = ou=Idmap ldap machine suffix = ou=Computers ldap passwd sync = Yes ldap suffix = DC=initial,DC=local ldap user suffix = ou=Users ldap ssl = Off ldapsam:trusted = yes ldapsam:editposix = yes # idmap gid = 500-10000000 # idmap uid = 500-10000000 netbios name = print-01 name resolve order = lmhost wins host bcast wins server = 10.10.15.31 wins support = No usershare max shares = 100 kerberos method = system keytab ## -------------------------------------- winbind separator = / winbind enum users = yes winbind enum groups = yes winbind nested groups = yes winbind use default domain = yes winbind nss info = rfc2307 winbind uid = 10000-20000 winbind gid = 10000-20000 realm = INITIAL.LOCAL template homedir = /home/%D/%U winbind refresh tickets = yes template shell = /bin/bash # [homes] # comment = Home Directories # valid users = %S, %D%w%S # browseable = No # read only = No # inherit acls = Yes # [profiles] # comment = Network Profiles Service # path = %H # read only = No # store dos attributes = Yes # create mask = 0600 # directory mask = 0700 # [users] # comment = All users # path = /home # read only = No # inherit acls = Yes # veto files = /aquota.user/groups/shares/ # guest ok = No # [groups] # comment = All groups # path = /home/groups # read only = No # inherit acls = Yes [printers] comment = All Printers path = /var/spool/samba printable = Yes create mask = 0664 browseable = Yes read only = No guest ok = Yes [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0700 read only = No guest ok = Yes writable = yes # inherit permissions = yes # -------------------------------- use client driver = yes # [netlogon]
/etc/cups/cupsd.conf
LogLevel debug SystemGroup root # Allow remote access Port 631 Listen /run/cups/cups.sock Browsing On BrowseLocalProtocols CUPS BrowseRemoteProtocols CUPS BrowseOrder allow,deny BrowseAllow all BrowseAddress 10.10.15.0/24 BrowseAddress 172.19.2.0/24 BrowseAddress 172.19.3.0/24 BrowseAddress 172.19.4.0/24 DefaultAuthType Basic WebInterface Yes <Location /> # Allow remote access... Order allow,deny Allow all </Location> <Location /admin> Order deny,allow </Location> <Location /admin/conf> AuthType Default Require user @SYSTEM </Location> <Policy default> JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default <Limit Create-Job Print-Job Print-URI Validate-Job> Order deny,allow </Limit> <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document> Require user @OWNER @SYSTEM Order deny,allow </Limit> <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices> AuthType Default Require user @SYSTEM Order deny,allow </Limit> <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs> AuthType Default Require user @SYSTEM Order deny,allow </Limit> <Limit Cancel-Job CUPS-Authenticate-Job> Require user @OWNER @SYSTEM Order deny,allow </Limit> <Limit All> Order deny,allow </Limit> </Policy> <Policy authenticated> JobPrivateAccess default JobPrivateValues default SubscriptionPrivateAccess default SubscriptionPrivateValues default <Limit Create-Job Print-Job Print-URI Validate-Job> AuthType Default Order deny,allow </Limit> <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document> AuthType Default Require user @OWNER @SYSTEM Order deny,allow </Limit> <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default> AuthType Default Require user @SYSTEM Order deny,allow </Limit> <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs> AuthType Default Require user @SYSTEM Order deny,allow </Limit> <Limit Cancel-Job CUPS-Authenticate-Job> AuthType Default Require user @OWNER @SYSTEM Order deny,allow </Limit> <Limit All> Order deny,allow </Limit> </Policy> <Policy allowallforanybody> JobPrivateAccess all JobPrivateValues none SubscriptionPrivateAccess all SubscriptionPrivateValues none <Limit All Validate-Job Cancel-Jobs Cancel-My-Jobs Close-Job CUPS-Get-Document> Order deny,allow Allow from all </Limit> </Policy> DefaultPolicy default
ãæž èŽããããšãããããŸããïŒ