{"id":1842,"date":"2017-06-19T05:28:36","date_gmt":"2017-06-19T05:28:36","guid":{"rendered":"https:\/\/www.enprowess.com\/blogs\/?p=1842"},"modified":"2017-06-19T09:43:21","modified_gmt":"2017-06-19T09:43:21","slug":"alfresco-ldap-using-email","status":"publish","type":"post","link":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/","title":{"rendered":"Login to Alfresco share using LDAP email attribute"},"content":{"rendered":"<p>Authentication is very important part of any application, Alfresco supports different types of authentications like LDAP, pass-through, alfrescoNTLM, Kerberos, and external authentication.<\/p>\n<p>In one of the project we used LDAP and from client we had requirement for Alfresco LDAP authentication using email id. Alfresco provides default authentication using username, while login in Alfresco with email using LDAP was new. <\/p>\n<p>This blog will help to know about creating custom subsystem for login using email id in Alfresco. LDAP provide third party authentication. LDAP has fixed structure, so any organization won&#8217;t prefer to change their default LDAP structure. To create custom subsystem for authentication using email id in Alfresco, follow this blog.<\/p>\n<p><\/p>\n<h4>There are two different ways to achieve Alfresco LDAP Authentication using email id<\/h4>\n<p>(I) Set mail as a BaseDn in your LDAP, which is not recommended<\/p>\n<p>(II) Create your own subsystem which allow you to authenticate using email, before we discuss steps to create auth subsystem, it is important for you to understand Alfresco auth subsystem, to know about it <a href=\"http:\/\/docs.alfresco.com\/5.2\/concepts\/auth-subsystem-intro.html\">click here<\/a>.<\/p>\n<h5\/>Steps to create auth subsystem:<\/p>\n<\/h4>\n<p>(1) Following configuration files are needed for configuration.<\/p>\n<ul>\n<li> common-ldap-context.xml<br \/>\n<br \/>\nTOMCAT_HOME\\webapps\\alfresco\\WEB-INF\\classes\\alfresco\\extension\\subsystems\\Authentication\\subsytem-name\\common-ldap-context.xml<\/li>\n<li>ldap-filter.properties<br \/>\nTOMCAT_HOME\\webapps\\alfresco\\WEB-INF\\classes\\alfresco\\extension\\subsystems\\Authentication\\subsytem-name\\ldap\\ldap-filter.properties<\/p>\n<\/li>\n<li>ldap-filter-context.xml<br \/>\nTOMCAT_HOME\\webapps\\alfresco\\WEB-INF\\classes\\alfresco\\extension\\subsystems\\Authentication\\subsytem-name\\ldap\\ldap-filter-context.xml<\/li>\n<\/ul>\n<p>(2) Modify following configuration based on LDAP setting in ldap-filter.properties<\/p>\n<p> <img loading=\"lazy\" src=\"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/Ldap_Conf.png\" alt=\"Alfresco LDAP Authentication using email id\" width=\"553\" height=\"167\" class=\"aligncenter size-full wp-image-1843\" \/><br \/>\nNote :-  Make sure that userIdAttributeName must be mail<\/p>\n<p>(3) Add following snippet entry in alfresco.global.properties<link>\n<p>TOMCAT_HOME\\shared\\classes\\alfresco.global.properties<\/p>\n<p> <img loading=\"lazy\" src=\"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/LDAP_alf_gl.png\" alt=\"Alfresco LDAP Authentication using email id\" width=\"548\" height=\"91\" class=\"aligncenter size-full wp-image-1844\" \/><\/p>\n<p>(4) Create a Class which extends LDAPAuthenticationComponentImpl<br \/>\nOverride &#8220;authenticateImpl&#8221; method and add following snippet.<\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/LDAP_code_1.png\" alt=\"Alfresco LDAP Authentication using email id\" width=\"554\" height=\"132\" class=\"aligncenter size-full wp-image-1845\" \/><\/p>\n<p>Add following snippet in your class<\/p>\n<p> <img loading=\"lazy\" src=\"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/LDAP_code_2.png\" alt=\"Alfresco LDAP Authentication using email id\" width=\"554\" height=\"378\" class=\"aligncenter size-full wp-image-1846\" \/><\/p>\n<p>(5) Export jar file which contain custom class. Copy exported jar to<br \/>\n<br \/>\nTOMCAT_HOME\\webapps\\alfresco\\WEB-INF\\lib\\<\/p>\n<p>(6) Restart Server.<\/p>\n<p>Now you have created custom authentication subsystem successfully, you able to login Alfresco with LDAP email.<\/p>\n<p>\nDownload it &#8211; <a href=\"http:\/\/www.enprowess.com\/contact-us\/\">enprowess-subsystem.zip<\/a><\/a><\/p>\n<p>I hope this blog helped you in understanding and configuring Ldap authentication using email id, We will keep sharing knowledge.<br \/>\nStay tuned&#8230;.<\/p>\n<p>Blog By,<br \/>\nPradip Patel<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Authentication is very important part of any application, Alfresco supports different types of authentications like LDAP, pass-through, alfrescoNTLM, Kerberos, and external authentication. In one of the project we used LDAP and from client we had requirement for Alfresco LDAP authentication using email id. Alfresco provides default authentication using username, while login in Alfresco with email&hellip; <a class=\"more-link\" href=\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/\">Continue reading <span class=\"screen-reader-text\">Login to Alfresco share using LDAP email attribute<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1872,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[14,34,58,56,57],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Login to Alfresco share using LDAP email attribute - EnProwess Blog<\/title>\n<meta name=\"description\" content=\"Learn about LDAP authentication in Alfresco using email id, this blog contains precise steps for Alfresco LDAP authentication using email id.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Login to Alfresco share using email attribute of LDAP\" \/>\n<meta property=\"og:description\" content=\"Steps to implement custom authentication subsystem to use email attribute of LDAP for authentication.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/\" \/>\n<meta property=\"og:site_name\" content=\"EnProwess Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-19T05:28:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-19T09:43:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/alfresco-banner-LDAP.png\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:title\" content=\"Login to Alfresco share using email attribute of LDAP\" \/>\n<meta name=\"twitter:description\" content=\"Steps to implement custom authentication subsystem to use email attribute of LDAP for authentication.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/alfresco-banner-LDAP.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#organization\",\"name\":\"EnProwess\",\"url\":\"https:\/\/www.enprowess.com\/blogs\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2021\/07\/enprowess_logo.jpg\",\"contentUrl\":\"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2021\/07\/enprowess_logo.jpg\",\"width\":1057,\"height\":697,\"caption\":\"EnProwess\"},\"image\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#website\",\"url\":\"https:\/\/www.enprowess.com\/blogs\/\",\"name\":\"EnProwess Blog\",\"description\":\"Your Enterprise solution partner\",\"publisher\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.enprowess.com\/blogs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#webpage\",\"url\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/\",\"name\":\"Login to Alfresco share using LDAP email attribute - EnProwess Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#primaryimage\"},\"datePublished\":\"2017-06-19T05:28:36+00:00\",\"dateModified\":\"2017-06-19T09:43:21+00:00\",\"description\":\"Learn about LDAP authentication in Alfresco using email id, this blog contains precise steps for Alfresco LDAP authentication using email id.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/www.enprowess.com\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Alfresco\",\"item\":\"https:\/\/www.enprowess.com\/blogs\/category\/alfresco\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Login to Alfresco share using LDAP email attribute\"}]},{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#\/schema\/person\/cb84840e7dba202419065ea1c9fe7f11\"},\"headline\":\"Login to Alfresco share using LDAP email attribute\",\"datePublished\":\"2017-06-19T05:28:36+00:00\",\"dateModified\":\"2017-06-19T09:43:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#webpage\"},\"wordCount\":358,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/alfresco-banner-LDAP.png\",\"keywords\":[\"Alfresco\",\"Alfresco 5\",\"integration\",\"LDAP\",\"Login\"],\"articleSection\":[\"Alfresco\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#\/schema\/person\/cb84840e7dba202419065ea1c9fe7f11\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.enprowess.com\/blogs\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b43445b202a083f6e4a2f2e7d6f43d62?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b43445b202a083f6e4a2f2e7d6f43d62?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.enprowess.com\/blogs\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Login to Alfresco share using LDAP email attribute - EnProwess Blog","description":"Learn about LDAP authentication in Alfresco using email id, this blog contains precise steps for Alfresco LDAP authentication using email id.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/","og_locale":"en_US","og_type":"article","og_title":"Login to Alfresco share using email attribute of LDAP","og_description":"Steps to implement custom authentication subsystem to use email attribute of LDAP for authentication.","og_url":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/","og_site_name":"EnProwess Blog","article_published_time":"2017-06-19T05:28:36+00:00","article_modified_time":"2017-06-19T09:43:21+00:00","og_image":[{"url":"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/alfresco-banner-LDAP.png"}],"twitter_card":"summary","twitter_title":"Login to Alfresco share using email attribute of LDAP","twitter_description":"Steps to implement custom authentication subsystem to use email attribute of LDAP for authentication.","twitter_image":"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/alfresco-banner-LDAP.png","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.enprowess.com\/blogs\/#organization","name":"EnProwess","url":"https:\/\/www.enprowess.com\/blogs\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/www.enprowess.com\/blogs\/#logo","inLanguage":"en-US","url":"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2021\/07\/enprowess_logo.jpg","contentUrl":"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2021\/07\/enprowess_logo.jpg","width":1057,"height":697,"caption":"EnProwess"},"image":{"@id":"https:\/\/www.enprowess.com\/blogs\/#logo"}},{"@type":"WebSite","@id":"https:\/\/www.enprowess.com\/blogs\/#website","url":"https:\/\/www.enprowess.com\/blogs\/","name":"EnProwess Blog","description":"Your Enterprise solution partner","publisher":{"@id":"https:\/\/www.enprowess.com\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.enprowess.com\/blogs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#primaryimage","inLanguage":"en-US","url":"","contentUrl":""},{"@type":"WebPage","@id":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#webpage","url":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/","name":"Login to Alfresco share using LDAP email attribute - EnProwess Blog","isPartOf":{"@id":"https:\/\/www.enprowess.com\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#primaryimage"},"datePublished":"2017-06-19T05:28:36+00:00","dateModified":"2017-06-19T09:43:21+00:00","description":"Learn about LDAP authentication in Alfresco using email id, this blog contains precise steps for Alfresco LDAP authentication using email id.","breadcrumb":{"@id":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.enprowess.com\/blogs\/"},{"@type":"ListItem","position":2,"name":"Alfresco","item":"https:\/\/www.enprowess.com\/blogs\/category\/alfresco\/"},{"@type":"ListItem","position":3,"name":"Login to Alfresco share using LDAP email attribute"}]},{"@type":"TechArticle","@id":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#article","isPartOf":{"@id":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#webpage"},"author":{"@id":"https:\/\/www.enprowess.com\/blogs\/#\/schema\/person\/cb84840e7dba202419065ea1c9fe7f11"},"headline":"Login to Alfresco share using LDAP email attribute","datePublished":"2017-06-19T05:28:36+00:00","dateModified":"2017-06-19T09:43:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#webpage"},"wordCount":358,"commentCount":2,"publisher":{"@id":"https:\/\/www.enprowess.com\/blogs\/#organization"},"image":{"@id":"https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#primaryimage"},"thumbnailUrl":"https:\/\/www.enprowess.com\/blogs\/wp-content\/uploads\/2017\/05\/alfresco-banner-LDAP.png","keywords":["Alfresco","Alfresco 5","integration","LDAP","Login"],"articleSection":["Alfresco"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.enprowess.com\/blogs\/alfresco-ldap-using-email\/#respond"]}]},{"@type":"Person","@id":"https:\/\/www.enprowess.com\/blogs\/#\/schema\/person\/cb84840e7dba202419065ea1c9fe7f11","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.enprowess.com\/blogs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/b43445b202a083f6e4a2f2e7d6f43d62?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b43445b202a083f6e4a2f2e7d6f43d62?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.enprowess.com\/blogs\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/posts\/1842"}],"collection":[{"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/comments?post=1842"}],"version-history":[{"count":25,"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/posts\/1842\/revisions"}],"predecessor-version":[{"id":1913,"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/posts\/1842\/revisions\/1913"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/media\/1872"}],"wp:attachment":[{"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/media?parent=1842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/categories?post=1842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.enprowess.com\/blogs\/wp-json\/wp\/v2\/tags?post=1842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}