X-Git-Url: https://git.immae.eu/?p=github%2Fwallabag%2Fwallabag.git;a=blobdiff_plain;f=src%2FWallabag%2FUserBundle%2FEntity%2FUser.php;h=f93c59c7e9aab09959091044e1dc85df10641470;hp=48446e3c1a6e64be30725ac03b77e2a636313fd4;hb=3b68f6ca727f52f9dc84fa1a134c092b44c49103;hpb=3f7a28de8473db53b3de9e19d5e8e58b4e21090d diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php index 48446e3c..f93c59c7 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php @@ -1,5 +1,15 @@ clients->first(); } } + + /** + * Set dn. + * + * @param string $dn + * + * @return User + */ + public function setDn($dn) + { + $this->dn = $dn; + + return $this; + } + + /** + * Get dn. + * + * @return string + */ + public function getDn() + { + return $this->dn; + } + + public function isLdapUser() + { + return $this->dn !== null; + } }