The default is security = user, as this is the most common setting, used for a standalone file server or a DC.
The alternatives are security = ads or security = domain , which support joining Samba to a Windows domain
You should use security = user and map to guest if you want to mainly setup shares without a password (guest shares). This is commonly used for a shared printer server.