めも

技術メモとその他

2012-11-01から1ヶ月間の記事一覧

java shit-jis problem

http://www.m-bsys.com/character-code/java-sjis http://hpcgi2.nifty.com/a-yama/wiki.cgi?Java%2FTips

ldap with c# 2

search way 1)with protocol SearchRequest findme = new SearchRequest(); findme.DistinguishedName = "ou=People,dc=example,dc=com"; //Find all People in this ou findme.Filter = "(objectClass=person)"; //The type of entry we are looking for fi…

ldap with c#

http://www.codeproject.com/Articles/34468/Talk-to-Sun-One-LDAP-with-NET-DirectoryServices1)way 1 //Use the servername and port that you setup LDAP Directory Service on //9605 is the example port here LdapDirectoryIdentifier ldapDir = new L…

ldap sample to get optional attributes such as "createtimestamp"

import java.util.Hashtable; import java.util.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.text.ParseException; import javax.naming.Context; import javax.naming.NamingEnumeration; import javax.naming.Nam…