LDAP Error: Warning - No DB_CONFIG file found in directory

#service ldap restart
之後顯示如下訊息:

正在停止 slapd: [ 確定 ]
正在為 slapd 檢查設定檔案: bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2)
Expect poor performance for suffix dc=taes,dc=tp,dc=edu,dc=tw. config file testing [ 確定 ]
正在啟動 slapd: [ 確定 ]

上面的所顯示的錯誤訊息裡的DB_CONFIG file 在/etc/openldap/DB_CONFIG.example,複製到/var/lib/ldap裡,改成DB_CONFIG,然後重新啟動LDAP即可。

LDAP: smbldap-populate error

初始資料庫時,下了
# smbldap-populate
結果出現以下的錯誤訊息,找了很久,在網路上搜尋了很久也沒有結果,雖然知道是驗證方面出了問題,但是不知道哪裡錯了?因為每個相關檔案都檢查無誤。最後,發現的原因真是令人噴飯。解決方法在文章最底部!

Use of uninitialized value in substitution (s///) at /usr/lib/perl5/vendor_perl/5.8.8/smbldap_tools.pm line 135, line 73.
Populating LDAP directory for domain taes (S-1-5-21-947298777-4161204931-40633681)
(using builtin directory structure)

adding new entry: dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 2.
adding new entry: ou=Users,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 3.
adding new entry: ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 4.
adding new entry: ou=Computers,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 5.
adding new entry: ou=Idmap,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 6.
adding new entry: uid=root,ou=Users,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 7.
adding new entry: uid=nobody,ou=Users,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 8.
adding new entry: cn=Domain Admins,ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 9.
adding new entry: cn=Domain Users,ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 10.
adding new entry: cn=Domain Guests,ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 11.
adding new entry: cn=Domain Computers,ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 12.
adding new entry: cn=Administrators,ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 16.
adding new entry: cn=Account Operators,ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 18.
adding new entry: cn=Print Operators,ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 19.
adding new entry: cn=Backup Operators,ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 20.
adding new entry: cn=Replicators,ou=Groups,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 21.
adding new entry: sambaDomainName=taes,dc=taes,dc=tp,dc=edu,dc=tw
failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 499, line 21
Please provide a password for the domain root:
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/vendor_perl/5.8.8/smbldap_tools.pm line 135, line 73.
No such object at /usr/lib/perl5/vendor_perl/5.8.8/smbldap_tools.pm line 353.

解決的方法很簡單,修改/etc/openldap/slapd.conf這個檔案裡的rootpw位置,rootpw前面不能有空格,有的話就會出現以上的錯誤訊息,拿掉就好了!

Switch Hub Crash I Switch Hub 突然當掉了

With a teacher research program and the use of SQL call, suddenly the network is interrupted. Ping DNS Server and Firewall do not get reply. The first reaction is: firewall was crash again! (Last week, an unknown crash) Go to the mainframe to reboot the firewall, but not solve the problem, watch the firewall log and found some session will suddenly coursing through and error. Suspect a client of LAN be got virus and cause the Internet paralysis; DNS Server reopened after it opened. But good times never often, is only for 1 minutes. Originally guess: "The catch virus PC users should not use the Internet, thus shutdown, the Internet has returned to good" Waiting for a 20 minutes still no improvement, at time has ping any servers with no replies. Why all of the servers? Even if the network traffic congestion, at least there will be the occasional one or two reply correct. Then suddenly to a telephone conversation, reminded "Maybe the switch hub that connect all the servers was crashing?" It's right, all reopened were get after switch hub reboot. However, why switch hub crash for no reason at all?
--------
下午正與某位老師研究SQL的使用以及程式的呼叫,突然網路都斷線了。Ping DNS和防火牆卻得不到Reply回應,第一個反應就是:防火牆又掛了!(上星期才不明的掛了一次) 到了主機房再重開防火牆,沒有解決問題,進防火牆看日誌檔,發現某些session會突然飆高且error,懷疑是區域網路中有一台Client中毒了,而造成網路癱瘓;重開DNS Server之後卻通了。只是,好景不常,只通了一分多鐘。本來猜測:"中毒的PC使用者應該是覺得網路不能使用了,因而關機,所以網路又恢復順暢,等他在關機就好了。"等了一、二十分鐘還沒有改善,這時候已經Ping不到任何一台Server了,為什麼會Ping不到全部的Server呢?就算網路塞車,至少也會有偶爾的一、二個reply才對。這時突然來了一通電話,提醒了"會不會是串接所有主機的Switch Hub掛掉了?" 果然,重開Switch Hub一切就恢復正常了。可是,為什麼無緣無故Switch Hub會掛掉呢?

Set Powers for One Document of One Person | 設定網域單一資料夾給某人權限

A teacher said he did not enter his own folder, the folder when the double click will show "You do not have this folder competence." Checked it, the original folder authority is being replaced by others, and as long as add his account with write, read, execute can be.

1, Sign in by Domain\Admins.
2, On the folder, right-click and select "Content."
3, "Safety "-->"Add New."
4, "Advanced "-->" Immediately Find "-->" join the domain account "-->"OK."
5, Granting authority, please note that do not check "Full Control". Full Control may cause Domain\Admins can not manage the folder, if the people leave, they must use other methods to loot the authority.
--------
某個老師說他不能進他的資料夾,當雙鍵該資料夾時,會出現"您沒有此資料夾權限"。查了一下,原來是資料夾權限被換成其他人了,只要加他的帳號及修改、讀取、執行權限即可。

1、以Domain\Admins的身分登入。
2、在該資料夾上點擊滑鼠右鍵,選擇"內容"。
3、"安全性"-->"新增"。
4、"進階"-->"立即尋找"-->"欲加入權限之帳號"-->"確定"。
5、給予權限,請注意,請勿在"完全控制"上打勾。完全控制有可能造成Domain\Admins未來無法管理該資料夾,如果該人離職,就必須另外用方法取回權限。

Block Several IP at Firewall | 在防火牆上檔掉一些IP

Received letters from the ICST, ask all units block the relay station's IP, is because some unknown malicious mail will be bogus ICST name of those relay stations to send. If received, do not open. Its characteristics are as follows:

寄件者:service@icst.org.tw

主旨:USB 2.0外接式硬碟安全刪除方案

附件名稱:外接式硬碟安全刪除.doc

This malicious code of the relevant information are as follows:

Path:
C: \ Documents and Settings \ \ Local Settings \ Temp \ 2.tmp (file name may change)

Registry:
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run

Value:
Data: C: \ Documents and Settings \ \ Local Settings \ Temp \ 2.tmp

Proposed units monitor and stop following relay station IP :

202.177.19.62

211.21.187.20

211.20.70.75

211.20.80.190

211.20.80.100
------------
日前收到國家資通中心來信,希望各單位擋掉一些中繼站IP,是因為有些不明的惡意郵件會冒充國家資通中心的名義以那些中繼站來發送,如有收到請勿開啟,特徵如下:

寄件者:service@icst.org.tw

主旨:USB 2.0外接式硬碟安全刪除方案

附件名稱:外接式硬碟安全刪除.doc

此惡意程式的相關資訊如下:

路徑:
C:\Documents and Settings\\Local Settings\Temp\2.tmp ( 檔名可能會改變 )

Registry:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

Value:
Data: C:\Documents and Settings\\Local Settings\Temp\2.tmp

建議有關單位監控並阻擋以下中繼站IP

202.177.19.62

211.21.187.20

211.20.70.75

211.20.80.190

211.20.80.100

生活小秘方(衣物篇)

在朋友的desktop,看到的,參考參考!
慘了!衣服沾到墨水有救嗎?
衣服或布料不小心沾到墨水時,可以使用飯粒或是漿糊加些許的清潔劑,用手指頭直接沾著在墨水的污垢處反覆塗抹,墨水的污垢很快的就可以清除掉囉!待污垢去除了之後,再將衣物浸泡在一般的清潔劑中一段時間再清洗。
鞋子臭臭怎麼辦?
•將少量蘇打粉直接撤入長筒靴、運動鞋,或常穿而易有異味、溼氣的鞋中,在蘇打粉作用之下,它會吸收溼氣及異味,很快你就會有一雙乾爽的鞋子了。
衣服衣領、腋下黃黃怎麼辦?
•先用刷子塗上洗髮精,或擦上刮鬍膏後靜置四之五分鐘再洗,即可順利洗淨。

生活小秘方(家事篇)

在朋友的desktop,看到的,參考參考!
鮮花保鮮法
在插著鮮花的花瓶裡,加進一點啤酒可使鮮花的保鮮期延長許多,因啤酒含有乙醇,能使花枝切口,消毒防腐,又含有糖及其它營養物質,能為枝葉提供養份。
使剪刀恢復銳利的方法
•利用鋁箔紙,將二、三張鋁箔紙疊在一起,用剪刀剪一剪,剪刀立刻就會銳利的令人吃驚。
吹風機輕鬆去標籤
•買禮盒送人時,價錢標籤很難撕掉,用手摳會摳的黑黑髒髒的反而更難看,如果用吹風機吹熱一下再撕,會很輕鬆的撕下來,不留一點痕跡!
啤酒除了喝還可以?
牛奶擦拭觀葉植物很不錯,其實,用剩下的啤酒來擦拭,效果更好!而且不怕招惹螞蟻,可用棉花沾啤酒,輕拭葉面,不僅灰塵, 連長年污垢也能輕易去除,葉面留下自然光澤。
不用芳香劑也讓家裡變香香
可利用自己的香水以棉花沾濕香水後,擦拭室內的電燈泡,燈泡一亮,香水就會溫熱發揮,整個房間就會充滿香氣了。
木製家具被蠟筆亂塗鴉
蠟筆污跡無法以水去除,用油漆溶劑雖可去除,但會剝去塗料而使表面受損,最適合的方法適用牙膏擦拭。不僅可擦的很乾淨,且也不會傷到傢俱。
廚房拖地先放醋
•廚房的地板很容易積屯油垢,拖地前,不彷在拖把上倒入一些醋,如此就能讓油污逃之夭夭!
茶杯上有茶垢怎麼辦?
•茶 垢在茶杯上影響杯子ㄉ美觀,用絲瓜布(化工)日久又傷痕累累,反倒藏污納垢.
祇要用一點點ㄉ牙膏,輕鬆ㄉ抹上.用手清洗就可去茶杯上ㄉ茶垢. 若是茶垢很厚,就抹上等一下,有空再回來清洗.相信你會有一隻新杯子 。
地板掃得更乾淨
•將破掉不用的絲襪套在掃帚上做清潔的工作,可將棉絮、頭髮等難掃的東西,全部掃乾淨。

Living Small Skills (Kitchen) | 生活小秘方(廚房篇)

在朋友的desktop,看到的,參考參考!
辣到流眼淚該怎麼辦?
如果不小心吃到辣的、流眼淚的食物,這時的第一個想法一定是,我要一杯水。然而水並不能解辣,反而會更辣。其實最好的解辣方法就是喝牛奶。牛奶才是最好的解辣劑。喝了就可以緩和辣感。
讓豆腐不易變碎
軟綿綿的豆腐在烹調過程中非常容易破碎, 如果想要豆腐保持完整,可以在煮之前先浸泡在鹽水中,大約30分鐘左右,泡過鹽水的豆腐下鍋之後就不容易破碎囉!
湯太鹹了,怎麼辦?
煮湯時如果不小心加了太多鹽,那湯的微妙口感就被破壞掉了。這時補救的方法是,加入馬鈴薯塊在煮個幾分鐘。因為馬鈴薯會吸收鹽分,要上桌時再把馬鈴薯撈掉,就可以解決湯太鹹的狀況。
削芋頭前先泡醋
削芋頭時,手部會因為芋頭的關係而愈削愈癢,此時不妨先將手浸泡在醋中,這樣一來,手就不癢囉!
如何將蘋果去除表面的蠟
•如果您喜歡吃蘋果,然後又常常吃,然後又喜歡連皮一起吃的話,那麼就需要將表面的蠟去除囉…
•(1) 將蘋果放進熱水(手可以接受的最高溫
度即可),這時候蘋果的蠟會暈開。
•(2) 牙膏塗抹在蘋果上當清潔劑,如此即
可消除。
如何讓馬鈴薯慢一點發芽?
馬鈴薯的芽含有毒的生物鹼,食用會造成腹痛、頭暈。若再馬鈴薯中放一顆蘋果,可大為延遲發芽的時間。因蘋果產生的乙烯氣體有妨礙馬鈴薯發育的功效。想讓木瓜或奇異果早點熟,就可以和蘋果放一起。另外澀柿子和蘋果放一起,一週後澀味消失了就變甜柿了。
如何讓飯又Q又香
•洗完米之後,在水裡加入幾滴濘濛汁,可以讓飯Q又香。
•在洗好準備開始煮的米飯裡滴上幾滴油,與飯同煮,也能讓米飯香 Q 喔!
想讓餅乾一直脆脆的?
將餅乾裝罐時,同時放進一塊方糖。由於方糖會吸收罐中的濕氣,所以就能保持餅乾的香脆可口的狀態了。

Snap Shots in Drupal

Originally built in a site of materials used is Drupal, then my manager hope that can upload materials with a thumbnail to respect users preview. However, more than 1,000 information, how could I make thumbnail for everyone? Today, I find the "Snap Shots" this tool, and the official website also provides Drupal module, that is to mean that can be used Snap Shots directly in Drupal.
Use very simple, as long as installed Snap Preview module and then to Sanp Shots website to register an id, and then Snap Shots website on the website of the new ID, fill it in the Snap Priview Setting of Drupal and it can work.
--------
當初在建置數位教材中心的時候用的是Drupal,那時我們的老大希望在上傳教材時能有個縮圖,以方面使用者預覽。不過,資料上千筆,我怎麼可能一筆一筆來作縮圖?今天讓我找到這個Snap Shots這個工具了,而且Drupal官方網站還提供模組,就是說可以直接在Drupal上使用Snap Shots。
使用方式很簡單,只要裝好Snap Preview模組再到SanpShots網站去註冊一個帳號即可以,然後把SnapShots網站上新增的網站的ID填入Drupal的Snap Priview Setting裡即可。

A Way To Use Printer | 影印機的另外一種用途

Open the paper clip above exhaust vent lid, put wet shoes on the above to dry.
------
打開紙夾上面的排氣孔蓋子,把濕掉的鞋子放在上面烘乾。

Domain can't be found or sign failure | 網域找不到或登入失敗

The past two days have received a case: user log on network domain there will be no domain found; Or at the same computer, only one user can login the network domain successfully, when logout, other people will not be able to re-sign and get the error messenge "domain XXXX not be able to use ..." and so on the message. But ask the user who can sign before to sign again, it can be used.
Why?
Unknown at present. After work, chat with afore manager, he mentioned that probable the second AD problems of backup. AD Account with no major changes simultaneously, and make conflict or domain authentication failure. " Today, dealt with a Client PC that previous two days unable to add or remove domain, but now can be added or removed, speculate the tow ADs two days ago were not synchronous changes Client-account, now handled when they are finished backup and can add to network domain. This problem must be maintained at work until next week.
-------------
這兩天紛紛接到一種案例:使用者在登入網域時會有找不到網域的現象;或者同一台電腦只有一個人可以登入網域,當登出後,其他人再行登入時便會出現"網域XXXX無法使用..."等等的訊息,但是再請可以登入之使用者登入時卻又可以使用網域。
為什麼?目前還未知,在下班後與之前的資訊組找聊天,他提到:"有可能是第二台備份AD出了問題。與主要AD的帳號沒有同步更改,以致產生網域衝突或認證失敗的原因。" 因今天處理一台Client PC在前兩天無法加入或移除網域,但現在卻可以,推測是兩台AD在兩天前處理時並未同步更改Client端帳號,現在處理時卻已備份完畢而可以加入網域。此番現象須待下星期上班時再做查修。

Baseball Hat on Reporter Meeting | 記者會上的棒球帽

The lunch time, eat my NT55 lunches and watch TV news. Oh! Some people charged another people. Some legislator accompanied at the reporter meeting, weeping with loud noise make people sympathize with them. Suddenly, I almost burst out lunches, lightly smiles! I discover each reporter meeting's "victim" all to have the same characteristic include the family members are wearing baseball hat, pulls down the hat edge, then weep. And each reporter meeting place
all are almost the same, looks like each victim all give reporter meeting in the same place.
Later, I inquire the reporter meeting date and place, then sell the baseball hat. Also may the individuality baseball hat for victim, the content which can cooperate the report meeting subjects to design above the baseball hat logo.......... !
.......
Is only a joke, just feel free to think. If really sell, should be animadverted to die! Ha!
-----------------
午餐時間,吃著我的55元便當看著午間新聞。哎呀!又有人出面控訴別人了,立委陪同開記者會,聲淚俱下般的不使人同情都不行。
突然,我差點噴飯,輕笑一聲!我發現到每個開記者會的"被害人"連同家屬都有共同的特徵,就是帶著棒球帽,壓低帽緣,然後抽涕哽咽,然後每個記者會的場地長得都一樣,看起來像是每個人都在同一個場地舉辦記者會。
以後,我只要打聽好記者會的時間地點,然後到門口賣棒球帽好了;還可以個性化棒球帽,針對記者會控訴的內容來設計棒球帽上面的圖案,...........!
只是個玩笑,想想就好,要是真的去賣應該會被批鬥死吧!哈!

Microsoft Physics Illustrator for Tablet PC

A few days ago, at a study place that the lecturer show a film about the physics teaching is "MIT sketching" form YouTube. At first glance, it is inconceivable that, it can used "amazing" to be described. After that, I also download the software and try...... Only said: "If the former physics class can be, maybe I have learned better."
------

------
前幾天在研習的會場看到講師秀一段影片,關於物理的教學MIT sketching。乍看,真是令人覺得不可思議,簡直可以用"嘆為觀止"來形容了。之後,我也去下載來玩看看......。只能說:"如果以前的物理課可以這樣上,那當時也許我會學得更好。"

Frisbee Nine Block | 飛盤九宮格

Today's sports course, was throwing the Frisbee. Suddenly discovered that the campus has a small amusement equipment belonging to a ladder-style railings. A brainstorm, let children face the railings, playing race of Frisbee Nine Block. Competitions to see who can vote in the 1-9 lattice using Frisbee. Children joy playing!
------
今天的體育課,上的是飛盤投擲,突然發現校園裡有一個遊樂器材屬於小的階梯式欄杆。靈機一動,請小朋友面向欄杆,玩起 火焰大挑戰--飛盤九宮格,比賽看誰可以投中一到九格。小朋友玩到不亦樂乎呢!